From: David Goulet Date: Mon, 14 Nov 2011 17:09:31 +0000 (-0500) Subject: Change malloc to zmalloc on UST metadata creation X-Git-Tag: v2.0-pre15~120 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3a009adbd8bf5305668e7e41e5e9f12813d04959;p=lttng-tools.git Change malloc to zmalloc on UST metadata creation Signed-off-by: David Goulet --- diff --git a/lttng-sessiond/trace-ust.c b/lttng-sessiond/trace-ust.c index a7c853530..3916c1f5d 100644 --- a/lttng-sessiond/trace-ust.c +++ b/lttng-sessiond/trace-ust.c @@ -245,7 +245,7 @@ struct ltt_ust_metadata *trace_ust_create_metadata(char *path) int ret; struct ltt_ust_metadata *lum; - lum = malloc(sizeof(struct ltt_ust_metadata)); + lum = zmalloc(sizeof(struct ltt_ust_metadata)); if (lum == NULL) { perror("ust metadata malloc"); goto error;