commit 2ecc245383f0b3fa1f247c9af3c53ecd6d831236
parent 6a22af30972d2c48947a004e37bf0566a1932856
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 9 May 2025 17:54:22 +0200
-fix another leak
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/auditordb/pg_insert_deposit_confirmation.c b/src/auditordb/pg_insert_deposit_confirmation.c
@@ -53,6 +53,7 @@ TAH_PG_insert_deposit_confirmation (
GNUNET_PQ_query_param_auto_from_type (&dc->master_sig),
GNUNET_PQ_query_param_end
};
+ enum GNUNET_DB_QueryStatus qs;
PREPARE (pg,
"auditor_deposit_confirmation_insert",
@@ -71,7 +72,9 @@ TAH_PG_insert_deposit_confirmation (
",exchange_pub"
",master_sig" /* master_sig could be normalized... */
") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13);");
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "auditor_deposit_confirmation_insert",
- params);
+ qs = GNUNET_PQ_eval_prepared_non_select (pg->conn,
+ "auditor_deposit_confirmation_insert",
+ params);
+ GNUNET_PQ_cleanup_query_params_closures (params);
+ return qs;
}