commit 6bee6d109c259fc0ec84aa54430f92fefd340d72
parent 45b6e7ee69b64c020915285202eacd262341f3f1
Author: Jacki <jacki@thejackimonster.de>
Date: Wed, 24 Apr 2024 15:59:23 +0200
Free remaining file handles on destruction
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c
@@ -194,6 +194,10 @@ handle_destroy (struct GNUNET_CHAT_Handle *handle)
if (handle->current)
handle_disconnect(handle);
+ GNUNET_CONTAINER_multihashmap_iterate(
+ handle->files, it_destroy_handle_files, NULL
+ );
+
if (handle->reclaim)
GNUNET_RECLAIM_disconnect(handle->reclaim);