kernel32: Fix a memory leak. Found by cross referencing Andrew Talbot's list of potential memory leaks with Smatch's view of the same problem.

This commit is contained in:
Michael Stefaniuc 2007-09-20 23:49:29 +02:00 committed by Alexandre Julliard
parent 01de104a75
commit ebd1ba807e
1 changed files with 1 additions and 0 deletions

View File

@ -1150,6 +1150,7 @@ static struct mapping_info *create_mapping( LPCWSTR name, BOOL rw )
}
unmap_file_from_memory( mi );
HeapFree( GetProcessHeap(), 0, mi );
return NULL;
}