From 4b5efa4e8160634fc6cefce8dcedb38d71f76cc6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 4 Apr 2017 16:27:27 +0200 Subject: towards supporting #3887 in the auditor --- src/exchangedb/plugin_exchangedb_common.c | 7 ++++++- 1 file changed, 6 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 2fb480415..b97aa08c2 100644 --- a/src/exchangedb/plugin_exchangedb_common.c +++ b/src/exchangedb/plugin_exchangedb_common.c @@ -56,7 +56,8 @@ common_free_reserve_history (void *cls, break; case TALER_EXCHANGEDB_RO_PAYBACK_COIN: payback = rh->details.payback; - GNUNET_CRYPTO_rsa_public_key_free (payback->denom_pub.rsa_public_key); + GNUNET_CRYPTO_rsa_signature_free (payback->coin.denom_sig.rsa_signature); + GNUNET_CRYPTO_rsa_public_key_free (payback->coin.denom_pub.rsa_public_key); GNUNET_free (payback); break; } @@ -133,6 +134,10 @@ common_free_coin_transaction_list (void *cls, GNUNET_free (list->details.refund); break; case TALER_EXCHANGEDB_TT_PAYBACK: + if (NULL != list->details.payback->coin.denom_pub.rsa_public_key) + GNUNET_CRYPTO_rsa_public_key_free (list->details.payback->coin.denom_pub.rsa_public_key); + if (NULL != list->details.payback->coin.denom_sig.rsa_signature) + GNUNET_CRYPTO_rsa_signature_free (list->details.payback->coin.denom_sig.rsa_signature); GNUNET_free (list->details.payback); break; } -- cgit v1.2.3