X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.c;h=6dc29d0670b3bb5883e7e39b39d2514107eb3b61;hb=178a055717baca3641cecbb45fe3c0d5d3286a3a;hp=1ba13bfd751e3a425705cf371da4f0827bc9f42a;hpb=6c1c0768320135c6936c371b09731851b508c023;p=lttng-tools.git diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index 1ba13bfd7..6dc29d067 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -716,7 +716,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;