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.5.3~21 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6f9aeee78345e0bfcac9e815e59ad7c9a5dd36d8;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 a91d30757..87c99dde4 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -116,7 +116,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;