Skip to content

Commit

Permalink
filter_throttle: fix print_status false log reduction option
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Fala <[email protected]>
  • Loading branch information
matthewfala authored and PettitWesley committed May 15, 2024
1 parent 2838f2f commit 622de47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/filter_throttle/throttle.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static int cb_throttle_init(struct flb_filter_instance *f_ins,
pthread_mutex_init(&throttle_mut, NULL);

/* Create context */
ctx = flb_malloc(sizeof(struct flb_filter_throttle_ctx));
ctx = flb_calloc(1, sizeof(struct flb_filter_throttle_ctx));
if (!ctx) {
flb_errno();
return -1;
Expand Down

0 comments on commit 622de47

Please sign in to comment.