summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-04-04 16:27:27 +0200
committerChristian Grothoff <christian@grothoff.org>2017-04-04 16:27:27 +0200
commit4b5efa4e8160634fc6cefce8dcedb38d71f76cc6 (patch)
treea07f3f48ec395ea5d940a672b7626a8bd4541360 /src/exchangedb/plugin_exchangedb_common.c
parent4b82a591c54bec9720181358c8230caa3759363f (diff)
downloadexchange-4b5efa4e8160634fc6cefce8dcedb38d71f76cc6.tar.gz
exchange-4b5efa4e8160634fc6cefce8dcedb38d71f76cc6.tar.bz2
exchange-4b5efa4e8160634fc6cefce8dcedb38d71f76cc6.zip
towards supporting #3887 in the auditor
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_common.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_common.c7
1 files changed, 6 insertions, 1 deletions
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;
}