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

index ab92af7..9c1ffd4 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);