Commit 123e5e66 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Don't free realname when exiting do_browser in insert_file

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@446 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent f4f7e04c
Showing with 5 additions and 6 deletions
+5 -6
......@@ -275,14 +275,13 @@ int do_insertfile(void)
if (i == NANO_TOFILES_KEY) {
char *tmp = do_browser(getcwd(NULL, 0));
if (tmp != NULL) {
free(realname);
#ifdef DISABLE_TABCOMP
free(realname);
#endif
if (tmp != NULL)
realname = tmp;
}
else {
free(realname);
else
return do_insertfile();
}
}
#endif
......
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