Fix: notification channel not released on error path
[lttng-tools.git] / 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.023931 seconds and 5 git commands to generate.