From 966242341a8978de75c547f11e15b5ff55e93cfc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 May 2016 15:44:44 +0200 Subject: expand testcase to cover refund API, fix minor issues --- src/exchangedb/plugin_exchangedb_common.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (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 c18b958cf..631142e86 100644 --- a/src/exchangedb/plugin_exchangedb_common.c +++ b/src/exchangedb/plugin_exchangedb_common.c @@ -100,8 +100,10 @@ common_free_coin_transaction_list (void *cls, { case TALER_EXCHANGEDB_TT_DEPOSIT: json_decref (list->details.deposit->wire); - GNUNET_CRYPTO_rsa_public_key_free (list->details.deposit->coin.denom_pub.rsa_public_key); - GNUNET_CRYPTO_rsa_signature_free (list->details.deposit->coin.denom_sig.rsa_signature); + 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) + GNUNET_CRYPTO_rsa_signature_free (list->details.deposit->coin.denom_sig.rsa_signature); GNUNET_free (list->details.deposit); break; case TALER_EXCHANGEDB_TT_REFRESH_MELT: -- cgit v1.2.3