diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-07-04 23:50:27 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-07-04 23:50:27 -0700 |
commit | 759fdd53975646e4c5f9cff5eb0fc0599d9edba9 (patch) | |
tree | 9392ce0ce4a0a1cc029e22a009ef94ada65711a5 /src | |
parent | 3ef4f9fd1e6ae233adb0bbfd90573623ee1059e6 (diff) |
til_settings: free descs in til_settings_reset_descs()
fix desc leak
Diffstat (limited to 'src')
-rw-r--r-- | src/til_settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |