aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib/fakebank.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-11 16:47:13 +0200
committerChristian Grothoff <christian@grothoff.org>2016-06-11 16:47:13 +0200
commit2886187a023105488fff8726872279e44d8d82b4 (patch)
tree75b8dedfcb4377a27b897115af958c84b525eb2b /src/bank-lib/fakebank.c
parent06622fbf8e366d1ea1fa5d89f3a97550e96de910 (diff)
fix leaks
Diffstat (limited to 'src/bank-lib/fakebank.c')
-rw-r--r--src/bank-lib/fakebank.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 13bfa1cb5..c4934fd27 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -192,6 +192,15 @@ TALER_FAKEBANK_check_empty (struct TALER_FAKEBANK_Handle *h)
void
TALER_FAKEBANK_stop (struct TALER_FAKEBANK_Handle *h)
{
+ struct Transaction *t;
+
+ while (NULL != (t = h->transactions_head))
+ {
+ GNUNET_CONTAINER_DLL_remove (h->transactions_head,
+ h->transactions_tail,
+ t);
+ GNUNET_free (t);
+ }
if (NULL != h->mhd_task)
{
GNUNET_SCHEDULER_cancel (h->mhd_task);