diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-21 16:14:10 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-21 16:14:10 -0500 |
commit | 37ce64c167e12c0d652442b2ff3deb9327d1317d (patch) | |
tree | 8d6ef23080e635955529ef3a851d7d33a53230be /config.c | |
parent | 617907fb4731d67f6e7aca17b9dd7881f2093aad (diff) |
generalized selector code seems to work, fix buffer_set_line_len memory leak
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -324,6 +324,8 @@ void config_read(Ted *ted, char const *filename) { if (!isspace(*src)) *dst++ = *src; *dst = 0; + if (settings->language_extensions[lang]) + free(settings->language_extensions[lang]); settings->language_extensions[lang] = new_str; } } |