commit 3976fc22e56d69dc2e7b0cda412259dbade631d3
parent e7ef7b6198c99a9675c4cc8413ce6e2f87078fc4
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 6 Mar 2024 23:56:31 +0100
-fix cleanup
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/exchangedb/pg_lookup_transfer_by_deposit.c b/src/exchangedb/pg_lookup_transfer_by_deposit.c
@@ -109,7 +109,6 @@ TEH_PG_lookup_transfer_by_deposit (
TALER_merchant_wire_signature_hash (payto_uri,
&wire_salt,
&wh);
- GNUNET_PQ_cleanup_result (rs);
if (0 ==
GNUNET_memcmp (&wh,
h_wire))
@@ -117,12 +116,16 @@ TEH_PG_lookup_transfer_by_deposit (
*pending = false;
kyc->ok = true;
*aml_decision = TALER_AML_NORMAL;
+ GNUNET_PQ_cleanup_result (rs);
return qs;
}
qs = GNUNET_DB_STATUS_SUCCESS_NO_RESULTS;
}
if (0 > qs)
+ {
+ GNUNET_PQ_cleanup_result (rs);
return qs;
+ }
*pending = true;
memset (wtid,
0,