mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Fix a memory leak in tortls/openssl/try_to_extract_certs_from_tls
Since this is an "intrusive" test, it only shows up for openssl <1.1 This is a bugfix on 0.3.5.x; bug not in any released Tor.
This commit is contained in:
parent
db27a70c94
commit
15596f6c0c
@ -1007,6 +1007,7 @@ test_tortls_try_to_extract_certs_from_tls(void *ignored)
|
||||
tt_assert(cert == c1);
|
||||
tt_assert(id_cert);
|
||||
X509_free(cert); /* decrease refcnt */
|
||||
X509_free(id_cert); /* decrease refcnt */
|
||||
|
||||
done:
|
||||
sk_X509_free(sess->cert_chain);
|
||||
|
Loading…
Reference in New Issue
Block a user