Change malloc to zmalloc on UST metadata creation
authorDavid Goulet <david.goulet@polymtl.ca>
Mon, 14 Nov 2011 17:09:31 +0000 (12:09 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Mon, 14 Nov 2011 17:11:14 +0000 (12:11 -0500)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/trace-ust.c

index a7c853530d0ab7db9906c588d7da72c9a4e3ced5..3916c1f5de97c8dc46fdb650b2f91edd6d971bbe 100644 (file)
@@ -245,7 +245,7 @@ struct ltt_ust_metadata *trace_ust_create_metadata(char *path)
        int ret;
        struct ltt_ust_metadata *lum;
 
-       lum = malloc(sizeof(struct ltt_ust_metadata));
+       lum = zmalloc(sizeof(struct ltt_ust_metadata));
        if (lum == NULL) {
                perror("ust metadata malloc");
                goto error;
This page took 0.026039 seconds and 4 git commands to generate.