From 6796cd8ac4a3a03d7af3dd2139c12c53b984a089 Mon Sep 17 00:00:00 2001 From: Sven Baars Date: Sat, 2 Nov 2019 12:02:27 +0100 Subject: [PATCH] shell32: Fix a memory leak (Valgrind). Signed-off-by: Sven Baars Signed-off-by: Alexandre Julliard --- dlls/shell32/shlview.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index c0c027fbd3a..bcb9466315a 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -655,6 +655,8 @@ static HRESULT ShellView_FillList(IShellViewImpl *This) { if (IncludeObject(This, pidl) == S_OK) shellview_add_item(This, pidl); + else + ILFree(pidl); } SendMessageW(This->hWndList, LVM_SORTITEMS, (WPARAM)This->pSFParent, (LPARAM)ShellView_CompareItems);