From 8e32b63b5ad14e5a647ee580f618762c439a0d47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sun, 14 Feb 2016 17:48:43 -0500 Subject: [PATCH 1/1] Fix: Possible use-after-free in create_ctx_type() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/bin/lttng/commands/add_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index d58ee908b..a802df0c1 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -728,6 +728,7 @@ struct ctx_type *create_ctx_type(void) if (!type->opt) { PERROR("malloc ctx_type options"); destroy_ctx_type(type); + type = NULL; goto end; } end: -- 2.34.1