Fixed a potential double call to CRYPT_Free on variable "temp".
This commit is contained in:
parent
b4b0c243ac
commit
4ce6ee1b31
|
@ -448,12 +448,12 @@ BOOL WINAPI CryptAcquireContextA (HCRYPTPROV *phProv, LPCSTR pszContainer,
|
|||
goto error;
|
||||
}
|
||||
pProv = CRYPT_LoadProvider(imagepath);
|
||||
CRYPT_Free(temp);
|
||||
CRYPT_Free(signature);
|
||||
if (!pProv) {
|
||||
/* CRYPT_LoadProvider calls SetLastError */
|
||||
goto error;
|
||||
}
|
||||
CRYPT_Free(temp);
|
||||
pProv->pVTable->dwProvType = dwProvType;
|
||||
pProv->pVTable->pszProvName = provname;
|
||||
if (pProv->pFuncs->pCPAcquireContext(&pProv->hPrivate, (CHAR*)pszContainer, dwFlags, pProv->pVTable))
|
||||
|
|
Loading…
Reference in New Issue