Fix: goto end after end label
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 4 Apr 2018 16:20:30 +0000 (12:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Apr 2018 18:15:00 +0000 (14:15 -0400)
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 <jonathan.rajotte-julien@efficios.com>
src/bin/lttng-sessiond/rotation-thread.c

index e6b9b6a1e72790702a7d96e1412dd3bcadc43662..d39aad80b413e888a9d6859a5be17473e7b11e0f 100644 (file)
@@ -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;
 }
 
This page took 0.026213 seconds and 4 git commands to generate.