diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-27 14:58:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-27 14:58:46 +0200 |
commit | b3ddcd0dbb6cf0db09f7bd156d73b3cb8e284e2d (patch) | |
tree | 3371c706be8e44e47c530a4d4b85fe38980630eb /src/backend/anastasis-httpd.c | |
parent | e2f67e7bf9c3779720b9a61012a4d0c0c4b6e1d1 (diff) | |
download | anastasis-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.c | 10 |
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; + } } |