mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-26 11:34:32 +00:00
ossl: Fix memory leak in fromPKCS12
This commit is contained in:
parent
c68a5e449f
commit
a014df24c5
@ -4791,6 +4791,7 @@ public:
|
||||
BIO *bi = BIO_new(BIO_s_mem());
|
||||
BIO_write(bi, in.data(), in.size());
|
||||
PKCS12 *p12 = d2i_PKCS12_bio(bi, nullptr);
|
||||
BIO_free(bi);
|
||||
if(!p12)
|
||||
return ErrorDecode;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user