From 3a84166cb948fec673e00d3d5c5bdc2fa735cfe8 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 26 Nov 2014 12:34:01 -0500 Subject: [PATCH] Fix: ini.c: use zmalloc() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- src/common/config/ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/config/ini.c b/src/common/config/ini.c index 7b2a4b653..18ed705be 100644 --- a/src/common/config/ini.c +++ b/src/common/config/ini.c @@ -109,7 +109,7 @@ int ini_parse_file(FILE* file, ini_entry_handler handler, void* user) int error = 0; #if !INI_USE_STACK - line = (char*)malloc(INI_MAX_LINE); + line = (char*)zmalloc(INI_MAX_LINE); if (!line) { return -2; } -- 2.34.1