coverity 1462570 Resource leak
authorPauli <paul.dale@oracle.com>
Sun, 26 Apr 2020 23:10:15 +0000 (09:10 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 30 Apr 2020 10:21:32 +0000 (20:21 +1000)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11651)

ssl/tls13_enc.c

index e23309e4a35c806a0d0eb04e290f35d2ce0452b6..e81f3656ee30163e2bcf710bd812d6720f589659 100644 (file)
@@ -608,6 +608,7 @@ int tls13_change_cipher_state(SSL *s, int which)
                 SSLfatal(s, SSL_AD_INTERNAL_ERROR,
                          SSL_F_TLS13_CHANGE_CIPHER_STATE,
                          SSL_R_ALGORITHM_FETCH_FAILED);
+                EVP_MD_CTX_free(mdctx);
                 goto err;
             }