Change malloc to zmalloc in lttng-sessiond code
[lttng-tools.git] / lttng-sessiond / compat / compat-poll.c
index cc4bb0f97585df5bcc71b8fb9c1fde43016518c7..50ef37472dc0a94db9eec258f21ce632f7d615d3 100644 (file)
@@ -43,7 +43,7 @@ int compat_poll_create(struct lttng_poll_event *events, int size)
        /* This *must* be freed by using lttng_poll_free() */
        events->events = zmalloc(size * sizeof(struct pollfd));
        if (events->events == NULL) {
-               perror("malloc struct pollfd");
+               perror("zmalloc struct pollfd");
                goto error;
        }
 
@@ -117,7 +117,7 @@ int compat_poll_del(struct lttng_poll_event *events, int fd)
 
        new = zmalloc(new_size * sizeof(struct pollfd));
        if (new == NULL) {
-               perror("malloc poll del");
+               perror("zmalloc poll del");
                goto error;
        }
 
This page took 0.022938 seconds and 4 git commands to generate.