From 45da08a2bf77c05a83d9895b6f60d6dca6b4ba2f Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Mon, 16 May 2016 19:33:08 -0400 Subject: [PATCH] Fix: Add missing free() in spawn_viewer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes coverity #1291948 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- src/bin/lttng/commands/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index 09acc30f4..db13ee227 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -253,12 +253,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; } -- 2.34.1