From 0f1a27641f1673df943b8147798b50d15a0edec9 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Wed, 1 Apr 2015 23:45:21 +0200 Subject: [PATCH] Fix minor mem leak in playlist scanner --- src/filescanner_playlist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/filescanner_playlist.c b/src/filescanner_playlist.c index 301f2ae9..5963a1e9 100644 --- a/src/filescanner_playlist.c +++ b/src/filescanner_playlist.c @@ -296,6 +296,10 @@ scan_playlist(char *file, time_t mtime) free(filename); } + /* We had some extinf that we never got to use, free it now */ + if (extinf) + free_mfi(&mfi, 1); + if (!feof(fp)) { DPRINTF(E_LOG, L_SCAN, "Error reading playlist '%s': %s\n", file, strerror(errno));