summaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_do_age_withdraw.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_age_withdraw.c
parente23c8b6a115158ee54653bff9af664ba9b73b44e (diff)
downloadexchange-9d71f037c015246ff5b2a804771cff9d84eb95dd.tar.gz
exchange-9d71f037c015246ff5b2a804771cff9d84eb95dd.tar.bz2
exchange-9d71f037c015246ff5b2a804771cff9d84eb95dd.zip
-fix leaks
Diffstat (limited to 'src/exchangedb/pg_do_age_withdraw.c')
-rw-r--r--src/exchangedb/pg_do_age_withdraw.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/exchangedb/pg_do_age_withdraw.c b/src/exchangedb/pg_do_age_withdraw.c
index 99584098c..970e65b5d 100644
--- a/src/exchangedb/pg_do_age_withdraw.c
+++ b/src/exchangedb/pg_do_age_withdraw.c
@@ -82,6 +82,7 @@ TEH_PG_do_age_withdraw (
conflict),
GNUNET_PQ_result_spec_end
};
+ enum GNUNET_DB_QueryStatus qs;
gc = GNUNET_TIME_absolute_to_timestamp (
GNUNET_TIME_absolute_add (now.abs_time,
@@ -98,8 +99,10 @@ TEH_PG_do_age_withdraw (
",conflict"
" FROM exchange_do_age_withdraw"
" ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11);");
- return GNUNET_PQ_eval_prepared_singleton_select (pg->conn,
- "call_age_withdraw",
- params,
- rs);
+ qs = GNUNET_PQ_eval_prepared_singleton_select (pg->conn,
+ "call_age_withdraw",
+ params,
+ rs);
+ GNUNET_PQ_cleanup_query_params_closures (params);
+ return qs;
}