File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -224,12 +224,14 @@ static int http_put(struct flb_out_doris *ctx,
224224
225225 if (ret == -1 ) {
226226 out_ret = FLB_RETRY ;
227+ goto parse_done ;
227228 }
228229
229230 msgpack_unpacked_init (& result );
230231 ret = msgpack_unpack_next (& result , out_buf , out_size , & off );
231232 if (ret != MSGPACK_UNPACK_SUCCESS ) {
232233 out_ret = FLB_RETRY ;
234+ goto free_buf ;
233235 }
234236
235237 root = result .data ;
@@ -265,9 +267,10 @@ static int http_put(struct flb_out_doris *ctx,
265267 break ;
266268 }
267269 }
268-
270+ free_buf :
269271 flb_free (out_buf );
270272 msgpack_unpacked_destroy (& result );
273+ parse_done :
271274 }
272275 else {
273276 out_ret = FLB_RETRY ;
Original file line number Diff line number Diff line change 2222
2323#include <fluent-bit/flb_pthread.h>
2424
25+ struct flb_upstream ;
26+ struct flb_output_instance ;
27+ struct mk_list ;
28+
2529struct flb_doris_progress_reporter {
2630 volatile int running ;
2731 size_t total_bytes ;
You can’t perform that action at this time.
0 commit comments