Skip to content

Commit

Permalink
out_chronicle: fix a resource leak on exception (CID 508008) (#9234)
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored Aug 15, 2024
1 parent 1af833c commit 1a19703
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/out_chronicle/chronicle.c
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,8 @@ static void cb_chronicle_flush(struct flb_event_chunk *event_chunk,
flb_plg_error(ctx->ins,
"Log event decoder initialization error : %d", ret);

/* Cleanup token and conn */
flb_sds_destroy(token);
flb_upstream_conn_release(u_conn);
FLB_OUTPUT_RETURN(FLB_RETRY);
}
Expand Down

0 comments on commit 1a19703

Please sign in to comment.