mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
wallet: Call db_stmt_free from the db_stmt destructor automatically
This is much more in line with the rest of our memory management. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
093f5bfbec
commit
e65e4fcf4b
@@ -128,7 +128,7 @@ static void db_sqlite3_stmt_free(struct db_stmt *stmt)
|
||||
{
|
||||
if (stmt->inner_stmt)
|
||||
sqlite3_finalize(stmt->inner_stmt);
|
||||
tal_free(stmt);
|
||||
stmt->inner_stmt = NULL;
|
||||
}
|
||||
|
||||
struct db_config db_sqlite3_config = {
|
||||
|
||||
Reference in New Issue
Block a user