X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.c;h=a802df0c11fb669c4bc4218ebf1776f022e31b8e;hp=d58ee908b1cec00f2cc053fa5031e23cacfc8531;hb=8e32b63b5ad14e5a647ee580f618762c439a0d47;hpb=5da9cf86d63bcb9d4d077155efc707048df4fd0c;ds=sidebyside 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: