app_queue.c: Fix json ref leak
[asterisk/asterisk.git] / apps / app_queue.c
index 472feac..3dc735a 100644 (file)
@@ -2255,6 +2255,7 @@ static void queue_publish_member_blob(struct stasis_message_type *type, struct a
        RAII_VAR(struct stasis_message *, msg, NULL, ao2_cleanup);
 
        if (!blob || !type) {
+               ast_json_unref(blob);
                return;
        }