From bf4c8220403c9bf755dce697199c10c677dc1ae1 Mon Sep 17 00:00:00 2001 From: Matthew Fala Date: Mon, 2 Oct 2023 22:37:17 +0000 Subject: [PATCH] filter_throttle: fix print_status false log reduction option Signed-off-by: Matthew Fala --- plugins/filter_throttle/throttle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/filter_throttle/throttle.c b/plugins/filter_throttle/throttle.c index a7284dbf1fd..c831aa2ed7b 100644 --- a/plugins/filter_throttle/throttle.c +++ b/plugins/filter_throttle/throttle.c @@ -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;