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.7.3~46 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a95d283a20a012b9e85d520911b4b520fda5aa43;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 dc37a09dd..3879909d9 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -285,12 +285,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; }