diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-13 12:47:42 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-13 12:47:42 -0400 |
commit | 15596f6c0c0a8aea262c225ebb99ce0caeecc562 (patch) | |
tree | 7a812dd0846ce520d1f3bca0335e8fe7a426af1e /src | |
parent | db27a70c9450495974ad0f2f5ee8c4d7454293f8 (diff) | |
download | tor-15596f6c0c0a8aea262c225ebb99ce0caeecc562.tar.gz tor-15596f6c0c0a8aea262c225ebb99ce0caeecc562.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_tortls_openssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_tortls_openssl.c b/src/test/test_tortls_openssl.c index 6086252882..3928b754ac 100644 --- a/src/test/test_tortls_openssl.c +++ b/src/test/test_tortls_openssl.c @@ -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); |