summaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-25 15:38:58 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-25 15:38:58 +0100
commitf22401750505d281a092034342058fc588b62ea0 (patch)
tree8d3136b8d2f9cadadf5a552a3af21a1e26114590 /src/exchangedb
parent85aa6d17c727a5899490aa82b0ece9ac95972c66 (diff)
downloadexchange-f22401750505d281a092034342058fc588b62ea0.tar.gz
exchange-f22401750505d281a092034342058fc588b62ea0.tar.bz2
exchange-f22401750505d281a092034342058fc588b62ea0.zip
fix a few more leaks
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/plugin_exchangedb_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_common.c b/src/exchangedb/plugin_exchangedb_common.c
index 8344974b4..26515670a 100644
--- a/src/exchangedb/plugin_exchangedb_common.c
+++ b/src/exchangedb/plugin_exchangedb_common.c
@@ -90,7 +90,8 @@ common_free_coin_transaction_list (void *cls,
switch (list->type)
{
case TALER_EXCHANGEDB_TT_DEPOSIT:
- GNUNET_free_non_null (list->details.deposit->receiver_wire_account);
+ if (NULL != list->details.deposit->receiver_wire_account)
+ json_decref (list->details.deposit->receiver_wire_account);
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)