aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_do_deposit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-10-29 20:27:23 +0100
committerChristian Grothoff <christian@grothoff.org>2023-10-29 20:27:23 +0100
commit9d71f037c015246ff5b2a804771cff9d84eb95dd (patch)
tree4bbcdedbf96152aebf5210a314b02160376e3e2f /src/exchangedb/pg_do_deposit.c
parente23c8b6a115158ee54653bff9af664ba9b73b44e (diff)
downloadexchange-9d71f037c015246ff5b2a804771cff9d84eb95dd.tar.xz
-fix leaks
Diffstat (limited to 'src/exchangedb/pg_do_deposit.c')
-rw-r--r--src/exchangedb/pg_do_deposit.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/exchangedb/pg_do_deposit.c b/src/exchangedb/pg_do_deposit.c
index 1e2d1c3c6..0ba45b628 100644
--- a/src/exchangedb/pg_do_deposit.c
+++ b/src/exchangedb/pg_do_deposit.c
@@ -87,6 +87,7 @@ TEH_PG_do_deposit (
ctr_conflict),
GNUNET_PQ_result_spec_end
};
+ enum GNUNET_DB_QueryStatus qs;
for (unsigned int i = 0; i < bd->num_cdis; i++)
{
@@ -109,8 +110,10 @@ TEH_PG_do_deposit (
",out_conflict AS conflicted"
" FROM exchange_do_deposit"
" ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16);");
- return GNUNET_PQ_eval_prepared_singleton_select (pg->conn,
- "call_deposit",
- params,
- rs);
+ qs = GNUNET_PQ_eval_prepared_singleton_select (pg->conn,
+ "call_deposit",
+ params,
+ rs);
+ GNUNET_PQ_cleanup_query_params_closures (params);
+ return qs;
}