memory: avoid a leak when toggling from Search to Goto
This fixes https://savannah.gnu.org/bugs/?53088.master
parent
204e1b8353
commit
9ceeabda38
|
@ -615,7 +615,8 @@ int do_prompt(bool allow_tabs, bool allow_files,
|
||||||
|
|
||||||
bottombars(menu);
|
bottombars(menu);
|
||||||
|
|
||||||
answer = mallocstrcpy(answer, curranswer);
|
if (answer != curranswer)
|
||||||
|
answer = mallocstrcpy(answer, curranswer);
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
redo_theprompt:
|
redo_theprompt:
|
||||||
|
|
Loading…
Reference in New Issue