projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: Possible use-after-free in create_ctx_type()
[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 d58ee908b1cec00f2cc053fa5031e23cacfc8531..a802df0c11fb669c4bc4218ebf1776f022e31b8e 100644
(file)
--- 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:
This page took
0.023774 seconds
and
4
git commands to generate.