Change malloc to zmalloc in lttng-sessiond code
[lttng-tools.git] / lttng-sessiond / session.c
index c7ce843d71669f3b40609293341dbf8f665a73a1..2ab49485f738a9d3c45df96ba91baed4a397794b 100644 (file)
@@ -175,9 +175,9 @@ int session_create(char *name, char *path)
        }
 
        /* Allocate session data structure */
-       new_session = malloc(sizeof(struct ltt_session));
+       new_session = zmalloc(sizeof(struct ltt_session));
        if (new_session == NULL) {
-               perror("malloc");
+               perror("zmalloc");
                ret = LTTCOMM_FATAL;
                goto error_malloc;
        }
This page took 0.025274 seconds and 5 git commands to generate.