commit f23e98dd3abadfb1e41269337b3648c60037d842
parent 6472a6b82840336be1eacdd7a515af08d49f0de0
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 14 May 2021 09:53:28 +0200
memory: prevent a leak when copying the leading quoting to the next line
This fixes https://savannah.gnu.org/bugs/?60596.
Bug existed since version 4.4, commit 8fce33af from two years ago,
since this automatic copying of the quoting part was introduced.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -1333,6 +1333,7 @@ bool do_wrap(void)
openfile->current_x += lead_len;
#ifndef NANO_TINY
+ free(openfile->undotop->strdata);
update_undo(ENTER);
#endif
if (autowhite)