Fix: notification channel not released on error path
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 23 Aug 2018 22:55:38 +0000 (18:55 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 24 Aug 2018 01:15:18 +0000 (21:15 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/channel.c

index 49a3684dbb1cbad3c6fb11ae5818238fdf806f0a..5214fe73a41eeae6d96985e16fece47d45f1d7f8 100644 (file)
@@ -430,14 +430,14 @@ lttng_notification_channel_has_pending_notification(
        case LTTNG_NOTIFICATION_CHANNEL_MESSAGE_TYPE_NOTIFICATION:
                ret = enqueue_notification_from_current_message(channel);
                if (ret) {
-                       goto end;
+                       goto end_unlock;
                }
                *_notification_pending = true;
                break;
        case LTTNG_NOTIFICATION_CHANNEL_MESSAGE_TYPE_NOTIFICATION_DROPPED:
                ret = enqueue_dropped_notification(channel);
                if (ret) {
-                       goto end;
+                       goto end_unlock;
                }
                *_notification_pending = true;
                break;
This page took 0.026634 seconds and 5 git commands to generate.