mirror of git://git.sv.gnu.org/nano.git
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:
parent
f4f7e04c5b
commit
123e5e66d3
11
files.c
11
files.c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue