Fix: lttng add_context.c: use zmalloc
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 26 Nov 2014 17:25:55 +0000 (12:25 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 27 Nov 2014 17:54:08 +0000 (12:54 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/add_context.c

index e50ed84b6e97b9e0e7756ebf4b4a8c3b1bcaffba..7211dc5cb9498ed13f8fb42551b3491bbad1e1f8 100644 (file)
@@ -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;
This page took 0.0265069999999999 seconds and 4 git commands to generate.