diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-26 16:38:59 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-26 16:38:59 +0200 |
commit | c0451f0982bdb565f431417cea3ab0238342d125 (patch) | |
tree | 4a27b418a74acd0fa5d6bb789818ced43c4832d5 /src/exchangedb/plugin_exchangedb_common.c | |
parent | 3f468773e71b68e9ceb5431e797941b1cc086e68 (diff) | |
download | exchange-c0451f0982bdb565f431417cea3ab0238342d125.tar.xz |
fix #4533 for exchange (breaks interaction with bank for /admin/add/incoming)
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_common.c')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_common.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/exchangedb/plugin_exchangedb_common.c b/src/exchangedb/plugin_exchangedb_common.c index 16396f0f3..3bf9bda32 100644 --- a/src/exchangedb/plugin_exchangedb_common.c +++ b/src/exchangedb/plugin_exchangedb_common.c @@ -40,8 +40,10 @@ common_free_reserve_history (void *cls, { case TALER_EXCHANGEDB_RO_BANK_TO_EXCHANGE: bt = rh->details.bank; - if (NULL != bt->wire) - json_decref (bt->wire); + if (NULL != bt->sender_account_details) + json_decref (bt->sender_account_details); + if (NULL != bt->transfer_details) + json_decref (bt->transfer_details); GNUNET_free (bt); break; case TALER_EXCHANGEDB_RO_WITHDRAW_COIN: @@ -98,7 +100,7 @@ common_free_coin_transaction_list (void *cls, switch (list->type) { case TALER_EXCHANGEDB_TT_DEPOSIT: - json_decref (list->details.deposit->wire); + json_decref (list->details.deposit->receiver_wire_account); if (NULL != list->details.deposit->coin.denom_pub.rsa_public_key) GNUNET_CRYPTO_rsa_public_key_free (list->details.deposit->coin.denom_pub.rsa_public_key); if (NULL != list->details.deposit->coin.denom_sig.rsa_signature) |