/* 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;
}
new = zmalloc(new_size * sizeof(struct pollfd));
if (new == NULL) {
- perror("malloc poll del");
+ perror("zmalloc poll del");
goto error;
}