CT code now calls X509_free() after calling SSL_get_peer_certificate()
authorRob Percival <robpercival@google.com>
Mon, 7 Mar 2016 17:23:39 +0000 (17:23 +0000)
committerRich Salz <rsalz@openssl.org>
Mon, 7 Mar 2016 19:44:04 +0000 (14:44 -0500)
commit1cb437bedb06b7d6518792a2f8e62041b6e6c88b
tree7402776a7a97077a41406d8f1a8a683a6a59ead6
parent147e54a77ed43b1522f343114d79f8b4c8a6bfb2
CT code now calls X509_free() after calling SSL_get_peer_certificate()

Without this, the peer certificate would never be deleted, resulting in
a memory leak.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/ssl_lib.c