goto error;
}
- chan->ctx = malloc(sizeof(struct lttng_kernel_context));
+ chan->ctx = zmalloc(sizeof(struct lttng_kernel_context));
if (chan->ctx == NULL) {
- perror("malloc event context");
+ perror("zmalloc event context");
goto error;
}
goto error;
}
- event->ctx = malloc(sizeof(struct lttng_kernel_context));
+ event->ctx = zmalloc(sizeof(struct lttng_kernel_context));
if (event->ctx == NULL) {
- perror("malloc event context");
+ perror("zmalloc event context");
goto error;
}
* See kernel-ctl.h for explanation of this value
*/
nbmem = KERNEL_EVENT_LIST_SIZE;
- elist = malloc(sizeof(struct lttng_event) * nbmem);
+ elist = zmalloc(sizeof(struct lttng_event) * nbmem);
while ((size = fscanf(fp, "event { name = %m[^;]; };%n\n", &event, &pos)) == 1) {
if (count > nbmem) {