cryptnet: Avoid memory leak of info (Coverity).

oldstable
Marcus Meissner 2012-10-13 17:23:27 +02:00 committed by Alexandre Julliard
parent 9eb7378765
commit 919a789f45
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,6 @@ static void CRYPT_CacheURL(LPCWSTR pszURL, const CRYPT_BLOB_ARRAY *pObject,
if (CompareFileTime(&info->ExpireTime, &ft) < 0)
{
DeleteUrlCacheEntryW(pszURL);
CryptMemFree(info);
}
else
{
@ -767,6 +766,7 @@ static void CRYPT_CacheURL(LPCWSTR pszURL, const CRYPT_BLOB_ARRAY *pObject,
return;
}
}
CryptMemFree(info);
}
if (!CreateUrlCacheEntryW(pszURL, pObject->rgBlob[0].cbData, NULL, cacheFileName, 0))