From 477812d122932d5cdf474bce479327a82f748e30 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 17 Oct 2013 15:39:44 -0400 Subject: [PATCH] Fix: use after free in jul_list_events Signed-off-by: David Goulet --- src/bin/lttng-sessiond/jul.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/bin/lttng-sessiond/jul.c b/src/bin/lttng-sessiond/jul.c index 318d51165..a16e9b34b 100644 --- a/src/bin/lttng-sessiond/jul.c +++ b/src/bin/lttng-sessiond/jul.c @@ -450,7 +450,6 @@ int jul_list_events(struct lttng_event **events) ptr = realloc(tmp_events, nbmem * sizeof(*tmp_events)); if (!ptr) { PERROR("realloc JUL events"); - free(tmp_events); ret = -ENOMEM; rcu_read_unlock(); goto error; -- 2.34.1