diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-10-29 20:27:23 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-10-29 20:27:23 +0100 |
commit | 9d71f037c015246ff5b2a804771cff9d84eb95dd (patch) | |
tree | 4bbcdedbf96152aebf5210a314b02160376e3e2f /src/exchangedb/pg_do_age_withdraw.c | |
parent | e23c8b6a115158ee54653bff9af664ba9b73b44e (diff) | |
download | exchange-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.c | 11 |
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; } |