Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions plugins/sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down
Loading