mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 21:02:20 +01:00
Fix memory leak in x509_verify_cert itself, the failed certs need a pop_free call so the reference is properly decremented, as they are no longer in the X509_STORE.
This commit is contained in:
@@ -585,7 +585,7 @@ exit:
|
||||
}
|
||||
}
|
||||
if (failedCerts) {
|
||||
wolfSSL_sk_X509_free(failedCerts);
|
||||
wolfSSL_sk_X509_pop_free(failedCerts, NULL);
|
||||
}
|
||||
|
||||
/* Remove additional intermediates from init from the store */
|
||||
|
||||
Reference in New Issue
Block a user