From: Mathieu Desnoyers Date: Wed, 26 Nov 2014 17:31:52 +0000 (-0500) Subject: Fix: use zmalloc() in lttng list.c X-Git-Tag: v2.6.0-rc4~26 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8639413fbcccd910c4a3eff07bba818f59a99add;p=lttng-tools.git Fix: use zmalloc() in lttng list.c Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 5e9b28cff..6d7510481 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -125,7 +125,7 @@ static char *get_cmdline_by_pid(pid_t pid) } /* Caller must free() *cmdline */ - cmdline = malloc(PATH_MAX); + cmdline = zmalloc(PATH_MAX); if (!cmdline) { perror("malloc cmdline"); goto end;