Fix: use after free in jul_list_events
authorDavid Goulet <dgoulet@efficios.com>
Thu, 17 Oct 2013 19:39:44 +0000 (15:39 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 17 Oct 2013 19:39:44 +0000 (15:39 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/jul.c

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