mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
Fix minor mem leak in playlist scanner
This commit is contained in:
parent
e084eb71db
commit
0f1a27641f
@ -296,6 +296,10 @@ scan_playlist(char *file, time_t mtime)
|
|||||||
free(filename);
|
free(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We had some extinf that we never got to use, free it now */
|
||||||
|
if (extinf)
|
||||||
|
free_mfi(&mfi, 1);
|
||||||
|
|
||||||
if (!feof(fp))
|
if (!feof(fp))
|
||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_SCAN, "Error reading playlist '%s': %s\n", file, strerror(errno));
|
DPRINTF(E_LOG, L_SCAN, "Error reading playlist '%s': %s\n", file, strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user