Fix descriptor leak with a corrupted DSD file

Detected with cppcheck.
This commit is contained in:
Piotr Trojanek 2021-09-14 23:26:10 +02:00 committed by Justin Maggard
parent 696b2c3e1d
commit 814b23ee59

View File

@ -141,6 +141,7 @@ _get_dsftags(char *file, struct song_metadata *psong)
if (!pid3tag) if (!pid3tag)
{ {
fclose(fp);
free(id3tagbuf); free(id3tagbuf);
err = errno; err = errno;
errno = err; errno = err;