Nikolay Sivov : shlwapi: Use a proper deallocator (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Apr 15 14:50:32 CDT 2014
Module: wine
Branch: master
Commit: 0cb52a9cfa25a5ed2ee989e55bda58b442fefcc8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0cb52a9cfa25a5ed2ee989e55bda58b442fefcc8
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Apr 15 01:52:49 2014 +0400
shlwapi: Use a proper deallocator (Coverity).
---
dlls/shlwapi/string.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c
index 1a4ad14..b4b5b8a 100644
--- a/dlls/shlwapi/string.c
+++ b/dlls/shlwapi/string.c
@@ -2821,7 +2821,7 @@ HRESULT WINAPI SHLoadIndirectString(LPCWSTR src, LPWSTR dst, UINT dst_len, void
TRACE("returning %s\n", debugstr_w(dst));
end:
if(hmod) FreeLibrary(hmod);
- HeapFree(GetProcessHeap(), 0, dllname);
+ LocalFree(dllname);
return hr;
}
More information about the wine-cvs
mailing list