X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng%2Fcommands%2Fadd_context.c;h=2809395a0fbbf05a4ce5bd9629e78b761cdc3d10;hb=133d372ddcfe14ae59b00b95ed0727e7b6f507a1;hp=b1f81e6b3176d19a49957847727bed1afb723ac4;hpb=097e97d5b5b6a20d4aab4f66dce4f0bae5c0a689;p=lttng-tools.git diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c index b1f81e6b3..2809395a0 100644 --- a/src/bin/lttng/commands/add_context.c +++ b/src/bin/lttng/commands/add_context.c @@ -667,7 +667,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;