diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-08 15:44:44 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-08 15:44:44 +0200 |
commit | 966242341a8978de75c547f11e15b5ff55e93cfc (patch) | |
tree | 32d9bab0dbea2824066cdcb77035c8bb393767e0 /src/exchangedb/plugin_exchangedb_common.c | |
parent | 691c9a859f1c3e90b49645b9d9190116709b9cb4 (diff) | |
download | exchange-966242341a8978de75c547f11e15b5ff55e93cfc.tar.xz |
expand testcase to cover refund API, fix minor issues
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_common.c')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_common.c | 6 |
1 files changed, 4 insertions, 2 deletions
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: |