projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: lttng-add-context: leak of application context parameters
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
add_context.c
diff --git
a/src/bin/lttng/commands/add_context.c
b/src/bin/lttng/commands/add_context.c
index 2793955f458e6c1ab0fdd6058f9a474deb8ba520..65f329af1ef3cc9b9a7968b11f93001a7c46d695 100644
(file)
--- 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);
This page took
0.023307 seconds
and
4
git commands to generate.