From c36441a9c2038a7dac73413b7ee6c06c9d947d6f Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 4 Nov 2013 15:47:17 -0500 Subject: [PATCH] Fix: ressource leak in error path Fix coverity issue 1107347. Signed-off-by: David Goulet --- src/bin/lttng-sessiond/jul.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng-sessiond/jul.c b/src/bin/lttng-sessiond/jul.c index a16e9b34b..8b57b8d70 100644 --- a/src/bin/lttng-sessiond/jul.c +++ b/src/bin/lttng-sessiond/jul.c @@ -452,6 +452,7 @@ int jul_list_events(struct lttng_event **events) PERROR("realloc JUL events"); ret = -ENOMEM; rcu_read_unlock(); + free(jul_events); goto error; } tmp_events = ptr; -- 2.34.1