gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit a9759b6a599647c9619c2dcaa98eb8af0ece9bbb
parent 647fdfa410a24c9d07614ed6051ace3563e4df37
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Thu, 29 Aug 2024 21:29:42 +0200

- fix memleaks

Diffstat:
Msrc/service/hostlist/gnunet-daemon-hostlist_server.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/service/hostlist/gnunet-daemon-hostlist_server.c b/src/service/hostlist/gnunet-daemon-hostlist_server.c @@ -202,6 +202,8 @@ finish_response () { if (NULL != response) MHD_destroy_response (response); + if (NULL != response_json) + MHD_destroy_response (response_json); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Creating hostlist response with %u bytes\n", (unsigned int) builder->size); @@ -955,6 +957,11 @@ GNUNET_HOSTLIST_server_stop () MHD_destroy_response (response); response = NULL; } + if (NULL != response_json) + { + MHD_destroy_response (response_json); + response_json = NULL; + } if (NULL != peerstore_notify) { GNUNET_PEERSTORE_monitor_stop (peerstore_notify);