mirror of
git://git.sv.gnu.org/nano.git
synced 2025-03-15 05:52:59 +03:00
memory: avoid a leak when toggling from Search to Goto
This fixes https://savannah.gnu.org/bugs/?53088.
This commit is contained in:
parent
204e1b8353
commit
9ceeabda38
@ -615,7 +615,8 @@ int do_prompt(bool allow_tabs, bool allow_files,
|
||||
|
||||
bottombars(menu);
|
||||
|
||||
answer = mallocstrcpy(answer, curranswer);
|
||||
if (answer != curranswer)
|
||||
answer = mallocstrcpy(answer, curranswer);
|
||||
|
||||
#ifndef NANO_TINY
|
||||
redo_theprompt:
|
||||
|
Loading…
x
Reference in New Issue
Block a user