X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.c;h=7211dc5cb9498ed13f8fb42551b3491bbad1e1f8;hb=e86cd8cd7bea21b59a264d0760c3726d4f0eff43;hp=e50ed84b6e97b9e0e7756ebf4b4a8c3b1bcaffba;hpb=89b725777551ead53c60d1bd56ee7182fe539251;p=lttng-tools.git diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index e50ed84b6..7211dc5cb 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -715,7 +715,7 @@ int cmd_add_context(int argc, const char **argv) goto end; } - type = malloc(sizeof(struct ctx_type)); + type = zmalloc(sizeof(struct ctx_type)); if (type == NULL) { perror("malloc ctx_type"); ret = CMD_FATAL;