fix memory leak
authorDr. Stephen Henson <steve@openssl.org>
Sun, 2 Oct 2016 14:59:26 +0000 (15:59 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 2 Oct 2016 14:59:26 +0000 (15:59 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/statem/statem_srvr.c

index c7d77ae..008ebda 100644 (file)
@@ -3103,6 +3103,8 @@ int tls_construct_new_session_ticket(SSL *s)
         SSLerr(SSL_F_TLS_CONSTRUCT_NEW_SESSION_TICKET, ERR_R_INTERNAL_ERROR);
         goto err;
     }
+    EVP_CIPHER_CTX_free(ctx);
+    HMAC_CTX_free(hctx);
     OPENSSL_free(senc);
 
     return 1;