From: David Goulet Date: Fri, 26 Oct 2012 14:33:16 +0000 (-0400) Subject: Fix: lttng create allocated path memleak X-Git-Tag: v2.1.0-rc6~20 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=87f222b6348114239ba01a9a4be5a6304539f2a8;p=lttng-tools.git Fix: lttng create allocated path memleak Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 96bb184a7..f92861e47 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -399,6 +399,7 @@ error: if (traces_path) { free(traces_path); } + free(alloc_path); if (ret < 0) { ERR("%s", lttng_strerror(ret));