[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: Fixed memory leak introduced by 3
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: Fixed memory leak introduced by 39eb60df61232bfc7da8e2f7afc48efcad0f1019 |
Date: |
Mon, 16 Aug 2021 09:25:40 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new ada8dc68 Fixed memory leak introduced by
39eb60df61232bfc7da8e2f7afc48efcad0f1019
ada8dc68 is described below
commit ada8dc689eee7d4d096d6cafd23962b938343629
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Aug 16 10:21:48 2021 +0300
Fixed memory leak introduced by 39eb60df61232bfc7da8e2f7afc48efcad0f1019
When "Date:" header is replaced with new value, old value wasn't freed
---
src/microhttpd/response.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index c869afcf..50d87afc 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -517,6 +517,10 @@ MHD_add_response_header (struct MHD_Response *response,
MHD_HTTP_HEADER_DATE));
mhd_assert (NULL != hdr);
_MHD_remove_header (response, hdr);
+ if (NULL != hdr->value)
+ free (hdr->value);
+ free (hdr->header);
+ free (hdr);
}
if (MHD_NO != add_response_entry (response,
MHD_HEADER_KIND,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: Fixed memory leak introduced by 39eb60df61232bfc7da8e2f7afc48efcad0f1019,
gnunet <=