From 9908810a4cfc351cc94e09ffef5898dfc33a9600 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 26 Nov 2014 12:33:09 -0500 Subject: [PATCH] Fix: lttng conf.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/bin/lttng/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng/conf.c b/src/bin/lttng/conf.c index 4bcf49e33..3a40ec520 100644 --- a/src/bin/lttng/conf.c +++ b/src/bin/lttng/conf.c @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include "conf.h" @@ -191,7 +191,7 @@ char *config_read_session_name(char *path) #define NAME_MAX_SCANF_IS_A_BROKEN_API "254" #endif - session_name = malloc(NAME_MAX); + session_name = zmalloc(NAME_MAX); if (session_name == NULL) { ERR("Out of memory"); goto error; -- 2.34.1