kernel32: Don't free a NULL / not yet allocated pointer (PVS-Studio)
Michael Stefaniuc
mstefani at redhat.de
Mon Mar 9 04:29:57 CDT 2015
---
dlls/kernel32/path.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
index 4cc8c1d..5dd221f 100644
--- a/dlls/kernel32/path.c
+++ b/dlls/kernel32/path.c
@@ -933,7 +933,6 @@ DWORD WINAPI SearchPathW( LPCWSTR path, LPCWSTR name, LPCWSTR ext, DWORD buflen,
if (!search)
{
SetLastError( ERROR_OUTOFMEMORY );
- HeapFree( GetProcessHeap(), 0, dll_path );
return 0;
}
strcpyW( search, name );
--
1.9.3
More information about the wine-patches
mailing list