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 20:22:58 +0000 (15:22 -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 b1f81e6b3176d19a49957847727bed1afb723ac4..2809395a0fbbf05a4ce5bd9629e78b761cdc3d10 100644 (file)
@@ -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;
This page took 0.025975 seconds and 4 git commands to generate.