From 814b23ee5992c364248ef39c55487b9d6948d676 Mon Sep 17 00:00:00 2001 From: Piotr Trojanek Date: Tue, 14 Sep 2021 23:26:10 +0200 Subject: [PATCH] Fix descriptor leak with a corrupted DSD file Detected with cppcheck. --- tagutils/tagutils-dsf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tagutils/tagutils-dsf.c b/tagutils/tagutils-dsf.c index fe76ce6..1441356 100644 --- a/tagutils/tagutils-dsf.c +++ b/tagutils/tagutils-dsf.c @@ -141,6 +141,7 @@ _get_dsftags(char *file, struct song_metadata *psong) if (!pid3tag) { + fclose(fp); free(id3tagbuf); err = errno; errno = err;