Skip to content

Commit

Permalink
Merge r1908502 from trunk:
Browse files Browse the repository at this point in the history
mod_http2: Fix memory leak in calc_sha256_hash().
Submitted by: ylavic
Reviewed by: icing, jorton, covener


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1910854 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
notroj committed Jul 7, 2023
1 parent 85be535 commit ff558f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/http2/h2_push.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ff558f5

Please sign in to comment.