Fixed mem leak on error path.

This commit is contained in:
Michael Stefaniuc 2003-12-30 19:19:46 +00:00 committed by Alexandre Julliard
parent c04cf2d12c
commit 0bdf5d8c91
1 changed files with 2 additions and 0 deletions

View File

@ -305,6 +305,8 @@ static BOOL URLCacheContainers_AddContainer(LPCWSTR cache_prefix, LPCWSTR path,
if ((pContainer->hMutex = CreateMutexW(NULL, FALSE, mutex_name)) == NULL)
{
ERR("couldn't create mutex (error is %ld)\n", GetLastError());
HeapFree(GetProcessHeap(), 0, pContainer->path);
HeapFree(GetProcessHeap(), 0, pContainer);
return FALSE;
}