mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
afc3e83edd
Before this patch, CreateECPublicKey would create a SECKEYPublicKey allocated on a scoped arena. It would then call CryptoKey::PublicKeyValid, which has the side-effect of importing the key to the internal PKCS#11 slot. When the arena went out of scope, the memory for the key would be released, but the reference to the slot wouldn't, causing a leak. This patch fixes the leak by making the SECKEYPublicKey a ScopedSECKEYPublicKey (which ensures that the type-specific "destructor" SECKEY_DestroyPublicKey is called, which releases the reference to the PKCS#11 slot). |
||
---|---|---|
.. | ||
test | ||
CryptoBuffer.cpp | ||
CryptoBuffer.h | ||
CryptoKey.cpp | ||
CryptoKey.h | ||
KeyAlgorithmProxy.cpp | ||
KeyAlgorithmProxy.h | ||
moz.build | ||
WebCryptoCommon.h | ||
WebCryptoTask.cpp | ||
WebCryptoTask.h | ||
WebCryptoThreadPool.cpp | ||
WebCryptoThreadPool.h |