From: Mathieu Desnoyers Date: Wed, 26 Nov 2014 17:25:55 +0000 (-0500) Subject: Fix: lttng add_context.c: use zmalloc X-Git-Tag: v2.5.3~25 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=133d372ddcfe14ae59b00b95ed0727e7b6f507a1;p=lttng-tools.git Fix: lttng add_context.c: use zmalloc Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- 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;