Fix: ressource leak in error path
authorDavid Goulet <dgoulet@efficios.com>
Mon, 4 Nov 2013 20:47:17 +0000 (15:47 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 4 Nov 2013 20:47:17 +0000 (15:47 -0500)
Fix coverity issue 1107347.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/jul.c

index a16e9b34b6ce34314bc90150b3e0a9ae61685bb0..8b57b8d70cd7215fbfe393e76be097a6ce01f68c 100644 (file)
@@ -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;
This page took 0.027928 seconds and 4 git commands to generate.