From 8e4afd432616a29e1db7ba1af41555f795e412b4 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 28 Jun 2016 18:23:00 -0400 Subject: [PATCH] Fix: check return of parse_template Signed-off-by: Jonathan Rajotte --- src/bin/lttng/commands/create.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 5fdcbe3d2..60f3d7c68 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -876,6 +876,9 @@ static int create_session(void) &base_ctrl_url, &base_data_url, &base_shm_path); + if (ret) { + goto error; + } } /* Option validation */ -- 2.34.1