From ac1c36e32ac88e52dec3e78555535c0bc3bcf60b Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 27 Feb 2012 09:29:48 +0000 Subject: [PATCH] - fix --- src/namestore/gnunet-service-namestore.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index e4f7a2b37..e7c03bf21 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c @@ -92,15 +92,17 @@ cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping namestore service\n"); struct GNUNET_NAMESTORE_Operation * no; + struct GNUNET_NAMESTORE_Operation * tmp; struct GNUNET_NAMESTORE_Client * nc; struct GNUNET_NAMESTORE_Client * next; for (nc = client_head; nc != NULL; nc = next) { next = nc->next; - for (no = nc->op_head; no != NULL; no = no->next) + for (no = nc->op_head; no != NULL; no = tmp) { GNUNET_CONTAINER_DLL_remove (nc->op_head, nc->op_tail, no); + tmp = no->next; GNUNET_free (no); } -- 2.25.1