aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-06 23:56:31 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-06 23:56:31 +0100
commit3976fc22e56d69dc2e7b0cda412259dbade631d3 (patch)
tree0b1691130e547d312eb6b86cfe0224edfe33c418 /src
parente7ef7b6198c99a9675c4cc8413ce6e2f87078fc4 (diff)
-fix cleanup
Diffstat (limited to 'src')
-rw-r--r--src/exchangedb/pg_lookup_transfer_by_deposit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/exchangedb/pg_lookup_transfer_by_deposit.c b/src/exchangedb/pg_lookup_transfer_by_deposit.c
index b9d792d06..9a9b8af89 100644
--- 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,