Commit 20011f4d authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Plugging two tiny memory leaks. Patch essentially by Mark Majeres.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4819 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 6 additions and 0 deletions
+6 -0
2014-04-27 Mark Majeres <mark@engine12.com>
* src/rcfile.c (parse_include): Plug two tiny memory leaks.
2014-04-26 Benno Schulenberg <bensberg@justemail.net>
* 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
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment