need to free current
authorChristian Grothoff <christian@grothoff.org>
Sun, 25 Oct 2009 11:05:48 +0000 (11:05 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 25 Oct 2009 11:05:48 +0000 (11:05 +0000)
src/statistics/statistics_api.c

index 9606d20d1460246cae4261c152e2d2f8bcf7f1f7..86950ad4ce89d32e0b31bc2e3555d12abb01ec32 100644 (file)
@@ -508,6 +508,8 @@ GNUNET_STATISTICS_destroy (struct GNUNET_STATISTICS_Handle *h,
            {
              GNUNET_CLIENT_notify_transmit_ready_cancel (h->th);
              h->th = NULL;
+             free_action_item (h->current);
+             h->current = NULL;
            }
        }
       pos = h->action_head;