From 2b5fa56bf9c4e98ef843ef4c5192368151eedfe8 Mon Sep 17 00:00:00 2001 From: chme Date: Fri, 2 Mar 2018 17:49:53 +0100 Subject: [PATCH] [dacp] Add missing call to "db_queue_enum_end" in error case --- src/httpd_dacp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index 8680f32d..ef2dbef9 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -1703,7 +1703,10 @@ dacp_reply_playqueuecontents(struct httpd_request *hreq) { ret = playqueuecontents_add_queue_item(songlist, &queue_item, count, status.plid); if (ret < 0) - goto error; + { + db_queue_enum_end(&qp); + goto error; + } count++; }