From: Schanzenbach, Martin Date: Mon, 11 Dec 2017 12:03:48 +0000 (+0100) Subject: -fix X-Git-Tag: v0.11.0pre66~201^2~28 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5cefcd299ee56a92285569b1d96fb553a6582255;p=oweals%2Fgnunet.git -fix --- 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,