Code

screen_search: free second file list
authorMax Kellermann <max@duempel.org>
Fri, 19 Sep 2008 14:23:33 +0000 (16:23 +0200)
committerMax Kellermann <max@duempel.org>
Fri, 19 Sep 2008 14:23:33 +0000 (16:23 +0200)
Fix a memory leak: the concatened list was never freed.

src/screen_search.c

index cf919218aca4e1b811e506cef958d5b9736ca0ad..803772f4fd46535d57add4a439ffdb80fb76deb3 100644 (file)
@@ -190,6 +190,7 @@ filelist_search(mpdclient_t *c, mpd_unused int exact_match, int table,
                                                  local_pattern);
 
                filelist_move(list, list2);
+               filelist_free(list2);
                filelist_sort(list, compare_filelistentry_format);
                list->updated = TRUE;
        } else