File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1254,7 +1254,6 @@ static void cb_forward_flush(struct flb_event_chunk *event_chunk,
12541254 int mode ;
12551255 msgpack_packer mp_pck ;
12561256 msgpack_sbuffer mp_sbuf ;
1257- void * tmp_buf = NULL ;
12581257 void * out_buf = NULL ;
12591258 size_t out_size = 0 ;
12601259 struct flb_forward * ctx = out_context ;
@@ -1309,7 +1308,7 @@ static void cb_forward_flush(struct flb_event_chunk *event_chunk,
13091308 flb_plg_error (ctx -> ins , "no upstream connections available" );
13101309 msgpack_sbuffer_destroy (& mp_sbuf );
13111310 if (fc -> time_as_integer == FLB_TRUE ) {
1312- flb_free (tmp_buf );
1311+ flb_free (out_buf );
13131312 }
13141313 flb_free (flush_ctx );
13151314 FLB_OUTPUT_RETURN (FLB_RETRY );
@@ -1328,7 +1327,7 @@ static void cb_forward_flush(struct flb_event_chunk *event_chunk,
13281327 }
13291328 msgpack_sbuffer_destroy (& mp_sbuf );
13301329 if (fc -> time_as_integer == FLB_TRUE ) {
1331- flb_free (tmp_buf );
1330+ flb_free (out_buf );
13321331 }
13331332 flb_free (flush_ctx );
13341333 FLB_OUTPUT_RETURN (FLB_RETRY );
You can’t perform that action at this time.
0 commit comments