Commit 9ceeabda authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

memory: avoid a leak when toggling from Search to Goto

This fixes https://savannah.gnu.org/bugs/?53088.
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
......@@ -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:
......
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