From d8542d729ab8e285176bc29beb42ae7a19afa7e7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 2 Apr 2017 18:02:07 +0200 Subject: implement returning /paybacks as part of reserve history (#3887) --- src/exchangedb/plugin_exchangedb_common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/exchangedb/plugin_exchangedb_common.c') 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; -- cgit v1.2.3