struct ltt_ust_session *lus;
/* Allocate a new ltt ust session */
- lus = malloc(sizeof(struct ltt_ust_session));
+ lus = zmalloc(sizeof(struct ltt_ust_session));
if (lus == NULL) {
- PERROR("create ust session malloc");
+ PERROR("create ust session zmalloc");
goto error;
}
/* Init data structure */
- lus->consumer_fds_sent = 0;
lus->uid = uid;
lus->start_trace = 0;
luc = zmalloc(sizeof(struct ltt_ust_channel));
if (luc == NULL) {
- perror("ltt_ust_channel malloc");
+ perror("ltt_ust_channel zmalloc");
goto error;
}
lue = zmalloc(sizeof(struct ltt_ust_event));
if (lue == NULL) {
- PERROR("ust event malloc");
+ PERROR("ust event zmalloc");
goto error;
}
lum = zmalloc(sizeof(struct ltt_ust_metadata));
if (lum == NULL) {
- perror("ust metadata malloc");
+ perror("ust metadata zmalloc");
goto error;
}