From 1c5101506821591488755c72be89c37a176a5f0e Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Tue, 7 Dec 2010 03:12:29 -0600 Subject: [PATCH] shdocvw: Avoid a double free in PersistFile_Load. Spotted with Valgrind. --- dlls/shdocvw/intshcut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shdocvw/intshcut.c b/dlls/shdocvw/intshcut.c index e400f0d5861..e209e04ba38 100644 --- a/dlls/shdocvw/intshcut.c +++ b/dlls/shdocvw/intshcut.c @@ -526,7 +526,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam TRACE("Failed to store the iconindex to our property storage. hr = 0x%x\n", hr); } - CoTaskMemFree(iconfile); + CoTaskMemFree(iconindexstring); } IPropertyStorage_Release(pPropStg);