From 759fdd53975646e4c5f9cff5eb0fc0599d9edba9 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 4 Jul 2023 23:50:27 -0700 Subject: til_settings: free descs in til_settings_reset_descs() fix desc leak --- src/til_settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/til_settings.c b/src/til_settings.c index 46224ef..62f63e1 100644 --- a/src/til_settings.c +++ b/src/til_settings.c @@ -345,7 +345,7 @@ void til_settings_reset_descs(til_settings_t *settings) assert(settings); for (unsigned i = 0; i < settings->num; i++) - settings->entries[i]->desc = NULL; + settings->entries[i]->desc = til_setting_desc_free(settings->entries[i]->desc); } -- cgit v1.2.3