Fix descriptor leak with a corrupted DSD file

Detected with cppcheck.
This commit is contained in:
Piotr Trojanek authored and Justin Maggard committed 2022-02-11 00:30:04 -08:00
1 parent 696b2c3e1d
commit 814b23ee59
1 file changed
+1
+1
View File
@@ -141,6 +141,7 @@ _get_dsftags(char *file, struct song_metadata *psong)
if (!pid3tag)
{
fclose(fp);
free(id3tagbuf);
err = errno;
errno = err;