From: Mathieu Desnoyers Date: Wed, 26 Nov 2014 17:34:01 +0000 (-0500) Subject: Fix: ini.c: use zmalloc() X-Git-Tag: v2.5.3~16 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fc1e4bc7c132bfa9d2cc0a18b8a19bb7b4c7cd5a;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 4369a32f9..5384d4a78 100644 --- a/src/common/config/ini.c +++ b/src/common/config/ini.c @@ -107,7 +107,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; }