From: Mathieu Desnoyers Date: Thu, 4 Jul 2013 22:14:33 +0000 (-0400) Subject: Fix: lttng: memory leak in snapshot record command X-Git-Tag: v2.3.0-rc1~61 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cdcdb9dd7a59451f2263e268219b3bf28856fac2;p=lttng-tools.git Fix: lttng: memory leak in snapshot record command Signed-off-by: Mathieu Desnoyers --- diff --git a/src/bin/lttng/commands/snapshot.c b/src/bin/lttng/commands/snapshot.c index cc0dd9629..2a223d445 100644 --- a/src/bin/lttng/commands/snapshot.c +++ b/src/bin/lttng/commands/snapshot.c @@ -348,6 +348,7 @@ static int record(const char *url) } error: + lttng_snapshot_output_destroy(output); return ret; }