mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Free x509 on fail to push
This commit is contained in:
@ -1411,6 +1411,7 @@ int wolfSSL_X509_STORE_add_cert(WOLFSSL_X509_STORE* store, WOLFSSL_X509* x509)
|
||||
}
|
||||
else {
|
||||
result = WOLFSSL_FATAL_ERROR;
|
||||
wolfSSL_X509_free(x509);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1425,6 +1426,7 @@ int wolfSSL_X509_STORE_add_cert(WOLFSSL_X509_STORE* store, WOLFSSL_X509* x509)
|
||||
}
|
||||
else {
|
||||
result = WOLFSSL_FATAL_ERROR;
|
||||
wolfSSL_X509_free(x509);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user