From 1921a2401f377f53de2403fe738fce9af35dfa29 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Mon, 11 May 2020 21:37:29 +0200 Subject: [PATCH] [artwork] Fix memleak in source_item_pipe_get Queue item not being freed on succes --- src/artwork.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/artwork.c b/src/artwork.c index 3876c90f..ab9fd4a5 100644 --- a/src/artwork.c +++ b/src/artwork.c @@ -1576,7 +1576,9 @@ source_item_pipe_get(struct artwork_ctx *ctx) snprintf(ctx->path, sizeof(ctx->path), "%s", path); - return artwork_get(ctx->evbuf, path, NULL, ctx->max_w, ctx->max_h, false, ctx->data_kind); + free_queue_item(queue_item, 0); + + return artwork_get(ctx->evbuf, ctx->path, NULL, ctx->max_w, ctx->max_h, false, ctx->data_kind); } static int