Fix: lttng conf.c: use zmalloc()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 26 Nov 2014 17:33:09 +0000 (12:33 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 27 Nov 2014 20:59:12 +0000 (15:59 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/conf.c

index 55ed6352663e8f71dd2f496bf48cf5696d586bec..d3f03136807d26344976e4703226f79f04ed17dc 100644 (file)
@@ -24,7 +24,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-#include <common/error.h>
+#include <common/common.h>
 #include <common/utils.h>
 
 #include "conf.h"
@@ -190,7 +190,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;
This page took 0.025827 seconds and 4 git commands to generate.