Fixed a potential double call to CRYPT_Free on variable "temp".

This commit is contained in:
Michael Jung 2004-07-30 00:07:35 +00:00 committed by Alexandre Julliard
parent b4b0c243ac
commit 4ce6ee1b31
1 changed files with 1 additions and 1 deletions

View File

@ -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))