gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 20/28: RECLAIM: don't leak the elements of attr_list.


From: gnunet
Subject: [gnunet] 20/28: RECLAIM: don't leak the elements of attr_list.
Date: Mon, 06 Feb 2023 06:19:22 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit 3f4464acd8bf854ec4c32c80e6f4852e20511cdd
Author: ulfvonbelow <strilen@tilde.club>
AuthorDate: Sun Jan 29 06:15:16 2023 -0600

    RECLAIM: don't leak the elements of attr_list.
    
    Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
---
 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)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]