From e8ebd39138a7ceadde70189800ff6679e166ac13 Mon Sep 17 00:00:00 2001
From: ulfvonbelow <strilen@tilde.club>
Date: Sun, 29 Jan 2023 06:15:16 -0600
Subject: [PATCH] RECLAIM: don't leak the elements of attr_list.

---
 src/reclaim/gnunet-reclaim.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/reclaim/gnunet-reclaim.c b/src/reclaim/gnunet-reclaim.c
index da5f90409..cb8703495 100644
--- a/src/reclaim/gnunet-reclaim.c
+++ b/src/reclaim/gnunet-reclaim.c
@@ -218,7 +218,10 @@ do_cleanup (void *cls)
   if (NULL != identity_handle)
     GNUNET_IDENTITY_disconnect (identity_handle);
   if (NULL != attr_list)
-    GNUNET_free (attr_list);
+  {
+    GNUNET_RECLAIM_attribute_list_destroy (attr_list);
+    attr_list = NULL;
+  }
   if (NULL != attr_to_delete)
     GNUNET_free (attr_to_delete);
   if (NULL == credential_type)
-- 
2.38.1

