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
This commit is contained in:
Chris Allegretta 2001-01-04 22:05:47 +00:00
parent f4f7e04c5b
commit 123e5e66d3

11
files.c
View File

@ -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