summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/til_settings.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/til_settings.c b/src/til_settings.c
index e363466..2c3d3be 100644
--- a/src/til_settings.c
+++ b/src/til_settings.c
@@ -185,6 +185,9 @@ til_settings_t * til_settings_free(til_settings_t *settings)
if (settings) {
for (unsigned i = 0; i < settings->num; i++) {
+ if (settings->entries[i]->value_as_nested_settings)
+ til_settings_free(settings->entries[i]->value_as_nested_settings);
+
free((void *)settings->entries[i]->key);
free((void *)settings->entries[i]->value);
til_setting_desc_free((void *)settings->entries[i]->desc);
© All Rights Reserved