diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-01-26 22:32:39 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-01-26 22:32:39 +0100 |
commit | e3c4f5536ea9a17e26ce73a2c6171cbb6caf3d19 (patch) | |
tree | d9675837568bef512ae8b5525b12d1ebc8aea163 | |
parent | 52f2abe75732403263d51e365706999cb9db11d7 (diff) |
fix leak
-rw-r--r-- | src/backend/taler-merchant-exchange.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-exchange.c b/src/backend/taler-merchant-exchange.c index bc475031..c74d4f74 100644 --- a/src/backend/taler-merchant-exchange.c +++ b/src/backend/taler-merchant-exchange.c @@ -519,6 +519,11 @@ shutdown_task (void *cls) TALER_EXCHANGE_get_keys_cancel (e->conn); e->conn = NULL; } + if (NULL != e->keys) + { + TALER_EXCHANGE_keys_decref (e->keys); + e->keys = NULL; + } if (NULL != e->retry_task) { GNUNET_SCHEDULER_cancel (e->retry_task); @@ -617,7 +622,7 @@ check_wire_fee (struct Inquiry *w, TALER_amount_cmp_currency (&fees.wire, wire_fee)) || (0 > TALER_amount_cmp (&fees.wire, - wire_fee)) ) + wire_fee)) ) { GNUNET_break_op (0); GNUNET_free (wire_method); @@ -815,7 +820,7 @@ wire_transfer_cb (void *cls, GNUNET_SCHEDULER_shutdown (); return; } - if (0 == qs) + if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == qs) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Transfer already known. Ignoring duplicate.\n"); |