Skip to content

Commit 1a19703

Browse files
authored
out_chronicle: fix a resource leak on exception (CID 508008) (#9234)
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent 1af833c commit 1a19703

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

plugins/out_chronicle/chronicle.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,8 @@ static void cb_chronicle_flush(struct flb_event_chunk *event_chunk,
877877
flb_plg_error(ctx->ins,
878878
"Log event decoder initialization error : %d", ret);
879879

880+
/* Cleanup token and conn */
881+
flb_sds_destroy(token);
880882
flb_upstream_conn_release(u_conn);
881883
FLB_OUTPUT_RETURN(FLB_RETRY);
882884
}

0 commit comments

Comments
 (0)