summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-04-02 18:02:07 +0200
committerChristian Grothoff <christian@grothoff.org>2017-04-02 18:02:07 +0200
commitd8542d729ab8e285176bc29beb42ae7a19afa7e7 (patch)
tree4159ad02381c2ff5d89adf5c32feab3c944f0b1a /src/exchangedb/plugin_exchangedb_common.c
parent94dddbbe8281c71890eef1a9aa8384d99e26d5c2 (diff)
downloadexchange-d8542d729ab8e285176bc29beb42ae7a19afa7e7.tar.gz
exchange-d8542d729ab8e285176bc29beb42ae7a19afa7e7.tar.bz2
exchange-d8542d729ab8e285176bc29beb42ae7a19afa7e7.zip
implement returning /paybacks as part of reserve history (#3887)
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_common.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_common.c b/src/exchangedb/plugin_exchangedb_common.c
index 7b29b1d85..2fb480415 100644
--- a/src/exchangedb/plugin_exchangedb_common.c
+++ b/src/exchangedb/plugin_exchangedb_common.c
@@ -32,6 +32,7 @@ common_free_reserve_history (void *cls,
{
struct TALER_EXCHANGEDB_BankTransfer *bt;
struct TALER_EXCHANGEDB_CollectableBlindcoin *cbc;
+ struct TALER_EXCHANGEDB_Payback *payback;
struct TALER_EXCHANGEDB_ReserveHistory *backref;
while (NULL != rh)
@@ -54,7 +55,9 @@ common_free_reserve_history (void *cls,
GNUNET_free (cbc);
break;
case TALER_EXCHANGEDB_RO_PAYBACK_COIN:
- GNUNET_free (rh->details.payback);
+ payback = rh->details.payback;
+ GNUNET_CRYPTO_rsa_public_key_free (payback->denom_pub.rsa_public_key);
+ GNUNET_free (payback);
break;
}
backref = rh;