From: David Goulet Date: Thu, 17 Oct 2013 19:39:44 +0000 (-0400) Subject: Fix: use after free in jul_list_events X-Git-Tag: v2.4.0-rc1~87 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=477812d122932d5cdf474bce479327a82f748e30;p=lttng-tools.git Fix: use after free in jul_list_events Signed-off-by: David Goulet --- 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;