gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: fix use after free; fix mem


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix use after free; fix memleak
Date: Wed, 05 Jun 2019 21:12:34 +0200

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

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

The following commit(s) were added to refs/heads/master by this push:
     new c2eeb2f69 fix use after free; fix memleak
c2eeb2f69 is described below

commit c2eeb2f69ab1f0aa248781bebf04617cf9908e4b
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Wed Jun 5 21:11:51 2019 +0200

    fix use after free; fix memleak
---
 src/reclaim/plugin_rest_reclaim.c | 4 ----
 src/reclaim/reclaim_api.c         | 1 +
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/reclaim/plugin_rest_reclaim.c 
b/src/reclaim/plugin_rest_reclaim.c
index 18309e68c..3f2577802 100644
--- a/src/reclaim/plugin_rest_reclaim.c
+++ b/src/reclaim/plugin_rest_reclaim.c
@@ -283,10 +283,6 @@ cleanup_handle (struct RequestHandle *handle)
     GNUNET_free (ego_tmp->keystring);
     GNUNET_free (ego_tmp);
   }
-  if (NULL != handle->attr_it)
-  {
-    GNUNET_free (handle->attr_it);
-  }
   GNUNET_free (handle);
 }
 
diff --git a/src/reclaim/reclaim_api.c b/src/reclaim/reclaim_api.c
index 00ab69579..8c97ba9a2 100644
--- a/src/reclaim/reclaim_api.c
+++ b/src/reclaim/reclaim_api.c
@@ -509,6 +509,7 @@ handle_consume_ticket_result (void *cls,
     }
     GNUNET_CONTAINER_DLL_remove (h->op_head, h->op_tail, op);
     free_op (op);
+    GNUNET_free_non_null (attrs);
     return;
   }
   GNUNET_assert (0);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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