From: Mathieu Desnoyers Date: Wed, 26 Nov 2014 17:31:52 +0000 (-0500) Subject: Fix: use zmalloc() in lttng list.c X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=63a2c1bde5a14a71cc646c00f19eb00d70c33a68;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 f69d34db9..14e390a03 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -129,7 +129,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;