From 0bdf5d8c911ae6ec2de5fa376bfbe4be3767b80c Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Tue, 30 Dec 2003 19:19:46 +0000 Subject: [PATCH] Fixed mem leak on error path. --- dlls/wininet/urlcache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index 16939d5a56c..d77b9379314 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -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; }