Commit 765b92f9 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Don't use freed memory.

parent 0aa22f98
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment