Skip to content

Commit

Permalink
filter_multiline: fixed memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: leonardo-albertovich <leonardo.alminana@chronosphere.io>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Sep 1, 2024
1 parent 0fbe28c commit 44ac419
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/filter_multiline/ml.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ static int cb_ml_init(struct flb_filter_instance *ins,
flb_plg_error(ins, "'Mode' must be '%s' or '%s'",
FLB_MULTILINE_MODE_PARTIAL_MESSAGE,
FLB_MULTILINE_MODE_PARSER);

flb_free(ctx);

return -1;
}
}
Expand Down

0 comments on commit 44ac419

Please sign in to comment.