diff options
| author | Christian Grothoff <christian@grothoff.org> | 2016-06-11 16:47:13 +0200 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2016-06-11 16:47:13 +0200 | 
| commit | 2886187a023105488fff8726872279e44d8d82b4 (patch) | |
| tree | 75b8dedfcb4377a27b897115af958c84b525eb2b | |
| parent | 06622fbf8e366d1ea1fa5d89f3a97550e96de910 (diff) | |
fix leaks
| -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 13bfa1cb..c4934fd2 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); | 
