From: David Goulet Date: Mon, 4 Nov 2013 20:47:17 +0000 (-0500) Subject: Fix: ressource leak in error path X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=c36441a9c2038a7dac73413b7ee6c06c9d947d6f Fix: ressource leak in error path Fix coverity issue 1107347. Signed-off-by: David Goulet --- 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;