From: Michael Jeanson Date: Mon, 16 May 2016 23:33:08 +0000 (-0400) Subject: Fix: Add missing free() in spawn_viewer X-Git-Tag: v2.6.3~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3388f253ecdf6ce0d24c4ba677cf04ab07cce666;p=lttng-tools.git Fix: Add missing free() in spawn_viewer Fixes coverity #1291948 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index f90c3f6b9..66e987d19 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -295,12 +295,12 @@ static int spawn_viewer(const char *trace_path) } else { PERROR("exec: %s", viewer_bin); } - free(argv); ret = CMD_FATAL; goto error; } error: + free(argv); return ret; }