aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib/fakebank.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-16 13:11:35 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-16 13:11:35 +0100
commitbc7957f39338f220ec4a7e1b21e17b6142b809de (patch)
tree071203d8cc6e0f9e5be3fc6e52a643bfa5f5a2d0 /src/bank-lib/fakebank.c
parentc300b88af215e6bd8f59dac87cde754f7e4b4cdb (diff)
fix fakebank memory leak
Diffstat (limited to 'src/bank-lib/fakebank.c')
-rw-r--r--src/bank-lib/fakebank.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index b54cf44c6..ff7ecef90 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -832,8 +832,8 @@ handle_history (struct TALER_FAKEBANK_Handle *h,
"wt_subject", subject);
GNUNET_assert (NULL != trans);
GNUNET_free (subject);
- GNUNET_assert (0 == json_array_append (history,
- trans));
+ GNUNET_assert (0 == json_array_append_new (history,
+ trans));
if (count > 0)
{
pos = pos->next;