diff options
author | ulfvonbelow <strilen@tilde.club> | 2023-01-29 06:15:16 -0600 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-02-06 14:09:53 +0900 |
commit | 3f4464acd8bf854ec4c32c80e6f4852e20511cdd (patch) | |
tree | 078207face931d7e25f15cef40fe68cda0ac5f5d | |
parent | 09ed5e00e0ead9ad8e382cd015a4c0c2146f6325 (diff) | |
download | gnunet-3f4464acd8bf854ec4c32c80e6f4852e20511cdd.tar.gz gnunet-3f4464acd8bf854ec4c32c80e6f4852e20511cdd.zip |
RECLAIM: don't leak the elements of attr_list.
Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
-rw-r--r-- | src/reclaim/gnunet-reclaim.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) | |||
218 | if (NULL != identity_handle) | 218 | if (NULL != identity_handle) |
219 | GNUNET_IDENTITY_disconnect (identity_handle); | 219 | GNUNET_IDENTITY_disconnect (identity_handle); |
220 | if (NULL != attr_list) | 220 | if (NULL != attr_list) |
221 | GNUNET_free (attr_list); | 221 | { |
222 | GNUNET_RECLAIM_attribute_list_destroy (attr_list); | ||
223 | attr_list = NULL; | ||
224 | } | ||
222 | if (NULL != attr_to_delete) | 225 | if (NULL != attr_to_delete) |
223 | GNUNET_free (attr_to_delete); | 226 | GNUNET_free (attr_to_delete); |
224 | if (NULL == credential_type) | 227 | if (NULL == credential_type) |