Discard SmartcardCerts in case of error.
This commit is contained in:
parent
aef3cb16fa
commit
850e0b107f
@ -426,6 +426,8 @@ static BOOL smartcard_hw_enumerateCerts(const rdpSettings* settings, LPCWSTR csp
|
|||||||
NCryptFreeBuffer(enumState);
|
NCryptFreeBuffer(enumState);
|
||||||
NCryptFreeObject((NCRYPT_HANDLE)provider);
|
NCryptFreeObject((NCRYPT_HANDLE)provider);
|
||||||
out:
|
out:
|
||||||
|
if (!ret)
|
||||||
|
smartcardCerts_Free(certs);
|
||||||
free(scope);
|
free(scope);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user