Don't use freed memory.

This commit is contained in:
Robert Shearman 2004-08-26 18:22:43 +00:00 committed by Alexandre Julliard
parent 0aa22f989b
commit 765b92f9ed

View file

@ -1229,8 +1229,8 @@ BOOL WINAPI GetUrlCacheEntryInfoW(LPCWSTR lpszUrl,
if (!URLCache_FindEntryInHash(pHeader, lpszUrlA, &pEntry))
{
URLCacheContainer_UnlockIndex(pContainer, pHeader);
HeapFree(GetProcessHeap(), 0, lpszUrlA);
WARN("entry %s not found!\n", debugstr_a(lpszUrlA));
HeapFree(GetProcessHeap(), 0, lpszUrlA);
SetLastError(ERROR_FILE_NOT_FOUND);
return FALSE;
}