diff options
-rw-r--r-- | src/bank-lib/fakebank.c | 9 |
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); |