Fix memory leak.
authorBen Laurie <ben@openssl.org>
Wed, 6 Jun 2012 13:03:42 +0000 (13:03 +0000)
committerBen Laurie <ben@openssl.org>
Wed, 6 Jun 2012 13:03:42 +0000 (13:03 +0000)
ssl/s3_lib.c

index 9653de6..0f30d2d 100644 (file)
@@ -2988,6 +2988,10 @@ void ssl3_free(SSL *s)
        if (s->s3->handshake_dgst) ssl3_free_digest_list(s);
 #ifndef OPENSSL_NO_SRP
        SSL_SRP_CTX_free(s);
+#endif
+#ifndef OPENSSL_NO_TLSEXT
+       if (s->s3->tlsext_authz_client_types != NULL)
+               OPENSSL_free(s->s3->tlsext_authz_client_types);
 #endif
        OPENSSL_cleanse(s->s3,sizeof *s->s3);
        OPENSSL_free(s->s3);