projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sessiond: disable clang-format to work around unstable output
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
add_context.cpp
diff --git
a/src/bin/lttng/commands/add_context.cpp
b/src/bin/lttng/commands/add_context.cpp
index 79142cc65f29522e629d7bc2fede64f01c4d0c9f..3a0613bd00d6f55c1d40fb5973035c6d90b4213e 100644
(file)
--- a/
src/bin/lttng/commands/add_context.cpp
+++ b/
src/bin/lttng/commands/add_context.cpp
@@
-812,9
+812,16
@@
static void destroy_ctx_type(struct ctx_type *type)
if (!type) {
return;
}
if (!type) {
return;
}
+
if (type->opt) {
free(type->opt->symbol);
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);
+ }
}
}
+
delete type->opt;
free(type);
}
delete type->opt;
free(type);
}
This page took
0.024613 seconds
and
4
git commands to generate.