From cea6c68e33a159a83b52d0931d355051d89283a2 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 4 Apr 2018 12:20:30 -0400 Subject: [PATCH] Fix: goto end after end label This check was most probably for the previous call and was but after the end label by mistake. The check is not needed since the end label is following the call. CID 1388094 (#1 of 1): Double free (USE_AFTER_FREE) Signed-off-by: Jonathan Rajotte --- src/bin/lttng-sessiond/rotation-thread.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/bin/lttng-sessiond/rotation-thread.c b/src/bin/lttng-sessiond/rotation-thread.c index e6b9b6a1e..d39aad80b 100644 --- a/src/bin/lttng-sessiond/rotation-thread.c +++ b/src/bin/lttng-sessiond/rotation-thread.c @@ -732,11 +732,6 @@ int handle_notification_channel(int fd, uint32_t revents, end: lttng_notification_destroy(notification); - if (ret != 0) { - goto end; - } - - return ret; } -- 2.34.1