From b598b7f18cb460bdac6dccf141c703b667dfb54c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 7 Mar 2024 00:02:28 +0100 Subject: fix cleanup regression --- src/exchangedb/pg_lookup_transfer_by_deposit.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/exchangedb/pg_lookup_transfer_by_deposit.c b/src/exchangedb/pg_lookup_transfer_by_deposit.c index 9a9b8af89..192556130 100644 --- a/src/exchangedb/pg_lookup_transfer_by_deposit.c +++ b/src/exchangedb/pg_lookup_transfer_by_deposit.c @@ -120,12 +120,10 @@ TEH_PG_lookup_transfer_by_deposit ( return qs; } qs = GNUNET_DB_STATUS_SUCCESS_NO_RESULTS; + GNUNET_PQ_cleanup_result (rs); } if (0 > qs) - { - GNUNET_PQ_cleanup_result (rs); return qs; - } *pending = true; memset (wtid, 0, @@ -230,11 +228,11 @@ TEH_PG_lookup_transfer_by_deposit ( GNUNET_memcmp (&wh, h_wire)) { - GNUNET_PQ_cleanup_result (rs); + GNUNET_PQ_cleanup_result (rs2); return GNUNET_DB_STATUS_SUCCESS_NO_RESULTS; } + GNUNET_PQ_cleanup_result (rs2); } - GNUNET_PQ_cleanup_result (rs); *aml_decision = TALER_AML_NORMAL; return qs; } -- cgit v1.2.3