From: Mathieu Desnoyers Date: Wed, 26 Nov 2014 17:34:01 +0000 (-0500) Subject: Fix: ini.c: use zmalloc() X-Git-Tag: v2.6.0-rc4~21 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3a84166cb948fec673e00d3d5c5bdc2fa735cfe8;p=lttng-tools.git Fix: ini.c: use zmalloc() Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- 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; }