summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2023-03-18 15:28:33 +0000
committerYann Ylavic <ylavic@apache.org>2023-03-18 15:28:33 +0000
commitd49af21477de943ab51c05a75596ad3867680b3c (patch)
treea324642a11050de225f24f1b739a77dc2f94dbe7 /modules
parent33be818722e6deabb7c9bffd9d26a2c7f1a22e85 (diff)
downloadhttpd-d49af21477de943ab51c05a75596ad3867680b3c.tar.gz
mod_http2: Fix memory leak in calc_sha256_hash().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908502 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/http2/h2_push.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/http2/h2_push.c b/modules/http2/h2_push.c
index 462c47002a..dd0928b719 100644
--- a/modules/http2/h2_push.c
+++ b/modules/http2/h2_push.c
@@ -502,6 +502,7 @@ static void calc_sha256_hash(h2_push_diary *diary, apr_uint64_t *phash, h2_push
sha256_update(md, push->req->authority);
sha256_update(md, push->req->path);
EVP_DigestFinal(md, hash, &len);
+ EVP_MD_CTX_destroy(md);
val = 0;
for (i = 0; i != len; ++i)