diff --git a/ChangeLog b/ChangeLog index e2e228f0..2e2742e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2014-04-27 Mark Majeres + * src/rcfile.c (parse_include): Plug two tiny memory leaks. + 2014-04-26 Benno Schulenberg * src/global.c (add_to_funcs): Add a pointer to the tail of the functions list, to simplify and speed up adding new items. And diff --git a/src/rcfile.c b/src/rcfile.c index f5f1e947..7ee4d48c 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -649,6 +649,9 @@ void parse_include(char *ptr) strerror(errno)); } + globfree(&files); + free(expanded); + /* We're done with the new syntax file. Restore the original * filename and line number position. */ nanorc = nanorc_save;