X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fconf.c;h=d3f03136807d26344976e4703226f79f04ed17dc;hb=34eefddc5baadb7ba49b9da5161998d68ffdcbc0;hp=55ed6352663e8f71dd2f496bf48cf5696d586bec;hpb=6314111ddc8689f0b05ae8ed909498e310935be3;p=lttng-tools.git diff --git a/src/bin/lttng/conf.c b/src/bin/lttng/conf.c index 55ed63526..d3f031368 100644 --- a/src/bin/lttng/conf.c +++ b/src/bin/lttng/conf.c @@ -24,7 +24,7 @@ #include #include -#include +#include #include #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;