Fix: lttng: memory leak in snapshot record command
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 4 Jul 2013 22:14:33 +0000 (18:14 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 5 Jul 2013 18:59:26 +0000 (14:59 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/bin/lttng/commands/snapshot.c

index cc0dd9629d4d37902a7f6603313b89671ea9584a..2a223d44509721fedbdbcbe6bc2f3c12da72828a 100644 (file)
@@ -348,6 +348,7 @@ static int record(const char *url)
        }
 
 error:
+       lttng_snapshot_output_destroy(output);
        return ret;
 }
 
This page took 0.025285 seconds and 4 git commands to generate.