aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-07 00:02:28 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-07 00:02:28 +0100
commitb598b7f18cb460bdac6dccf141c703b667dfb54c (patch)
tree660bfeecb5bebe6f48728e2e4c105f0502694843 /src/exchangedb
parent3976fc22e56d69dc2e7b0cda412259dbade631d3 (diff)
fix cleanup regression
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/pg_lookup_transfer_by_deposit.c8
1 files changed, 3 insertions, 5 deletions
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;
}