[coverity] 1543289 Double free

This commit is contained in:
akallabeth 2024-04-11 12:23:17 +02:00 committed by Martin Fleisz
parent d865321571
commit 19d9afc0b4
1 changed files with 0 additions and 4 deletions

View File

@ -1189,11 +1189,7 @@ static SECURITY_STATUS initialize_pkcs11(HANDLE handle,
ret = (NCryptP11ProviderHandle*)ncrypt_new_handle(
WINPR_NCRYPT_PROVIDER, sizeof(*ret), NCryptP11GetProperty, NCryptP11StorageProvider_dtor);
if (!ret)
{
if (handle)
FreeLibrary(handle);
return NTE_NO_MEMORY;
}
ret->library = handle;
ret->baseProvider.enumKeysFn = NCryptP11EnumKeys;