summaryrefslogtreecommitdiff
path: root/src/backend/anastasis-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-27 14:58:46 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-27 14:58:46 +0200
commitb3ddcd0dbb6cf0db09f7bd156d73b3cb8e284e2d (patch)
tree3371c706be8e44e47c530a4d4b85fe38980630eb /src/backend/anastasis-httpd.c
parente2f67e7bf9c3779720b9a61012a4d0c0c4b6e1d1 (diff)
downloadanastasis-b3ddcd0dbb6cf0db09f7bd156d73b3cb8e284e2d.tar.gz
anastasis-b3ddcd0dbb6cf0db09f7bd156d73b3cb8e284e2d.tar.bz2
anastasis-b3ddcd0dbb6cf0db09f7bd156d73b3cb8e284e2d.zip
-fix misc. memory leaks
Diffstat (limited to 'src/backend/anastasis-httpd.c')
-rw-r--r--src/backend/anastasis-httpd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index 35a4d9c..fdf17ff 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -112,6 +112,11 @@ static int AH_connection_close;
static struct GNUNET_SCHEDULER_Task *mhd_task;
/**
+ * Heap for processing timeouts of requests.
+ */
+struct GNUNET_CONTAINER_Heap *AH_to_heap;
+
+/**
* Global return code
*/
static int global_result;
@@ -496,6 +501,11 @@ do_shutdown (void *cls)
ANASTASIS_DB_plugin_unload (db);
db = NULL;
}
+ if (NULL != AH_to_heap)
+ {
+ GNUNET_CONTAINER_heap_destroy (AH_to_heap);
+ AH_to_heap = NULL;
+ }
}