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.c: use zmalloc
[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 e823b1e6f18b8d383796ef22f5120044ef55c9df..8806400575783924133eed948d6b8ac84d61a8e1 100644
(file)
--- a/
src/bin/lttng/commands/add_context.c
+++ b/
src/bin/lttng/commands/add_context.c
@@
-469,7
+469,7
@@
int cmd_add_context(int argc, const char **argv)
goto end;
}
- type = malloc(sizeof(struct ctx_type));
+ type =
z
malloc(sizeof(struct ctx_type));
if (type == NULL) {
perror("malloc ctx_type");
ret = CMD_FATAL;
This page took
0.027437 seconds
and
4
git commands to generate.