Skip to content

Commit 2cc15ae

Browse files
committed
chore
Signed-off-by: composer <[email protected]>
1 parent 2ff7c87 commit 2cc15ae

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

plugins/out_doris/doris.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

plugins/out_doris/doris.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222

2323
#include <fluent-bit/flb_pthread.h>
2424

25+
struct flb_upstream;
26+
struct flb_output_instance;
27+
struct mk_list;
28+
2529
struct flb_doris_progress_reporter {
2630
volatile int running;
2731
size_t total_bytes;

0 commit comments

Comments
 (0)