X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-sessiond%2Ftrace-ust.c;h=4df481c12e28d4ccecdbede01c65d01779674db2;hb=ba7f0ae55f6209514025bb538c6fe3faefc32f4b;hp=bc73b79776780a0d64fe98ceb2e5c93b0bf83a44;hpb=284d8f5566ac2689a537eacc951473d258f49ec0;p=lttng-tools.git diff --git a/lttng-sessiond/trace-ust.c b/lttng-sessiond/trace-ust.c index bc73b7977..4df481c12 100644 --- a/lttng-sessiond/trace-ust.c +++ b/lttng-sessiond/trace-ust.c @@ -91,9 +91,9 @@ struct ltt_ust_session *trace_ust_create_session(char *path, unsigned int uid, 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; } @@ -137,9 +137,9 @@ struct ltt_ust_channel *trace_ust_create_channel(struct lttng_channel *chan, int ret; struct ltt_ust_channel *luc; - luc = malloc(sizeof(struct ltt_ust_channel)); + luc = zmalloc(sizeof(struct ltt_ust_channel)); if (luc == NULL) { - perror("ltt_ust_channel malloc"); + perror("ltt_ust_channel zmalloc"); goto error; } @@ -194,9 +194,9 @@ struct ltt_ust_event *trace_ust_create_event(struct lttng_event *ev) { struct ltt_ust_event *lue; - lue = malloc(sizeof(struct ltt_ust_event)); + lue = zmalloc(sizeof(struct ltt_ust_event)); if (lue == NULL) { - PERROR("ust event malloc"); + PERROR("ust event zmalloc"); goto error; } @@ -250,7 +250,7 @@ struct ltt_ust_metadata *trace_ust_create_metadata(char *path) lum = zmalloc(sizeof(struct ltt_ust_metadata)); if (lum == NULL) { - perror("ust metadata malloc"); + perror("ust metadata zmalloc"); goto error; }