X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.c;h=16389e11398573d71f7c4e81eb61dde06688d4d9;hp=c2614f2a2d023b8d20b4b98f64f8533844834653;hb=087beb4af5384fd841de8c939b65d80e98d4d1dd;hpb=3faa1e3d9bb6b6cd1fa370c206614af9061815be diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index c2614f2a2..16389e113 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -871,6 +871,10 @@ void destroy_ctx_type(struct ctx_type *type) } if (type->opt) { free(type->opt->symbol); + if (type->opt->ctx_type == CONTEXT_APP_CONTEXT) { + free(type->opt->u.app_ctx.ctx_name); + free(type->opt->u.app_ctx.provider_name); + } } free(type->opt); free(type);