From 5cefcd299ee56a92285569b1d96fb553a6582255 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Mon, 11 Dec 2017 13:03:48 +0100 Subject: [PATCH] -fix --- src/rest/gnunet-rest-server.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c index cb903e388..5415937a7 100644 --- a/src/rest/gnunet-rest-server.c +++ b/src/rest/gnunet-rest-server.c @@ -198,6 +198,14 @@ cleanup_handle (struct MhdConnectionHandle *handle) MHD_destroy_response (handle->response); if (NULL != handle->data_handle) { + + if (NULL != handle->data_handle->header_param_map) + { + GNUNET_CONTAINER_multihashmap_iterate (handle->data_handle->header_param_map, + &cleanup_url_map, + NULL); + GNUNET_CONTAINER_multihashmap_destroy (handle->data_handle->header_param_map); + } if (NULL != handle->data_handle->url_param_map) { GNUNET_CONTAINER_multihashmap_iterate (handle->data_handle->url_param_map, -- 2.25.1