cryptnet: Avoid memory leak of info (Coverity).
This commit is contained in:
parent
9eb7378765
commit
919a789f45
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue