From 9254d4a7b1e97df11593be9e08d12f5d38f32c89 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Thu, 14 Jul 2022 21:54:24 +0900 Subject: [PATCH] in_exec: use flb_calloc to fill NULL (#5715) Signed-off-by: Takahiro Yamashita --- plugins/in_exec/in_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/in_exec/in_exec.c b/plugins/in_exec/in_exec.c index addeeb84d3d..cc683fa138b 100644 --- a/plugins/in_exec/in_exec.c +++ b/plugins/in_exec/in_exec.c @@ -219,7 +219,7 @@ static int in_exec_init(struct flb_input_instance *in, int ret = -1; /* Allocate space for the configuration */ - ctx = flb_malloc(sizeof(struct flb_exec)); + ctx = flb_calloc(1, sizeof(struct flb_exec)); if (!ctx) { return -1; }