commit b598b7f18cb460bdac6dccf141c703b667dfb54c
parent 3976fc22e56d69dc2e7b0cda412259dbade631d3
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 7 Mar 2024 00:02:28 +0100
fix cleanup regression
Diffstat:
1 file 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
@@ -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;
}