diff --git a/src/text.c b/src/text.c index af1e02cb..68b64ed3 100644 --- a/src/text.c +++ b/src/text.c @@ -1184,6 +1184,7 @@ void discard_until(const undo *thisitem, openfilestruct *thefile, bool keep) free(group); group = next; } + free(dropit); dropit = thefile->undotop; }