Module: wine Branch: master Commit: a7daccb674b10ff163b4b63d45634127e862f8bc URL: http://source.winehq.org/git/wine.git/?a=commit;h=a7daccb674b10ff163b4b63d45...
Author: Michael Stefaniuc mstefani@redhat.de Date: Mon Mar 9 10:29:57 2015 +0100
kernel32: Don't free a NULL / not yet allocated pointer (PVS-Studio).
---
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 );