Skip to content

Commit

Permalink
in_emitter: Plug a possible resource leak on exception (CID 508193)
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored and edsiper committed Aug 20, 2024
1 parent 8a1d830 commit 4ac5b7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/in_emitter/emitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ static int cb_emitter_init(struct flb_input_instance *in,

ret = flb_input_config_map_set(in, (void *) ctx);
if (ret == -1) {
flb_free(ctx);
return -1;
}

Expand Down

0 comments on commit 4ac5b7b

Please sign in to comment.