X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fjul.c;h=8b57b8d70cd7215fbfe393e76be097a6ce01f68c;hp=318d511651e3147061a715703bda1631d16d2f48;hb=96090c92aec2d6f1565d8352a3eb309d130e19f7;hpb=aae6255e116d17f57e5a2eaf477bf48939a2121a diff --git a/src/bin/lttng-sessiond/jul.c b/src/bin/lttng-sessiond/jul.c index 318d51165..8b57b8d70 100644 --- a/src/bin/lttng-sessiond/jul.c +++ b/src/bin/lttng-sessiond/jul.c @@ -450,9 +450,9 @@ 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(); + free(jul_events); goto error; } tmp_events = ptr;