* src/text.c (do_linter): Make an error message somewhat clearer.
* src/rcfile.c (parse_binding): Improve another error message.
* doc/syntax/nanorc.nanorc: Show key names like M-6 and M-/ as valid.
+ * src/global.c (thanks_for_all_the_fish): Upon exit also free the
+ lists with functions and shortcuts.
2014-05-12 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (do_spell): Provide startup feedback, as for the linter.
while (allfuncs != NULL) {
subnfunc *f = allfuncs;
- allfuncs = (allfuncs)->next;
+ allfuncs = allfuncs->next;
free(f);
}
if (replaceage != NULL)
free_filestruct(replaceage);
#endif
+ /* Free the functions and shortcuts lists. */
+ while (allfuncs != NULL) {
+ subnfunc *f = allfuncs;
+ allfuncs = allfuncs->next;
+ free(f);
+ }
+ while (sclist != NULL) {
+ subnfunc *f = sclist;
+ sclist = sclist->next;
+ free(f);
+ }
#ifndef DISABLE_NANORC
if (homedir != NULL)
free(homedir);