From 133d372ddcfe14ae59b00b95ed0727e7b6f507a1 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 26 Nov 2014 12:25:55 -0500 Subject: [PATCH] Fix: lttng add_context.c: use zmalloc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- src/bin/lttng/commands/add_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1