-fix
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Mon, 11 Dec 2017 12:03:48 +0000 (13:03 +0100)
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>
Mon, 11 Dec 2017 12:03:48 +0000 (13:03 +0100)
src/rest/gnunet-rest-server.c

index cb903e3883691b9d4c3c88a82fb55f498e735fa3..5415937a7c95456295882a0aae0012860dd67484 100644 (file)
@@ -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,