X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.c;h=65f329af1ef3cc9b9a7968b11f93001a7c46d695;hb=a51eef24d40920e7e0f492290cf089ef634ac00f;hp=2793955f458e6c1ab0fdd6058f9a474deb8ba520;hpb=821783e58ae3796e21bf8dc1fd04a49a232bcb74;p=lttng-tools.git diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index 2793955f4..65f329af1 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -866,6 +866,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);