From d67efa4a2da5dab1d3459d12a31d0c2861f8e361 Mon Sep 17 00:00:00 2001 From: Andezion <245122@edu.p.lodz.pl> Date: Thu, 8 Jan 2026 00:18:19 +0100 Subject: [PATCH 1/3] fix: add destructor to free strmap memory in sql plugin --- plugins/sql.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/sql.c b/plugins/sql.c index 7f8631b000e5..25e2bee3bc71 100644 --- a/plugins/sql.c +++ b/plugins/sql.c @@ -150,6 +150,11 @@ struct sql { u64 next_rowid; }; +static void destroy_sql(struct sql *sql) +{ + strmap_clear(&sql->tablemap); +} + static struct sql *sql_of(struct plugin *plugin) { return plugin_get_data(plugin, struct sql); @@ -1986,6 +1991,7 @@ int main(int argc, char *argv[]) } sql = tal(NULL, struct sql); + tal_add_destructor(sql, destroy_sql); sql->dbfilename = NULL; sql->gosstore_fd = -1; sql->gosstore_nodes_off = sql->gosstore_channels_off = 0; From 0c2e2f28ac9e9d80f7df9c7a99c3c81b8580acf9 Mon Sep 17 00:00:00 2001 From: Andezion <245122@edu.p.lodz.pl> Date: Mon, 26 Jan 2026 02:11:12 +0100 Subject: [PATCH 2/3] added missing changelog Changelog-None From 820e7db1ec3f690ba6a17a1b3f4585ab9d681d11 Mon Sep 17 00:00:00 2001 From: Andezion <245122@edu.p.lodz.pl> Date: Mon, 26 Jan 2026 02:11:44 +0100 Subject: [PATCH 3/3] added missing changelog Changelog-None