Commit e8505b2d authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

memory: plug a leak, by actually freeing a discarded undo struct

This fixes https://savannah.gnu.org/bugs/?53269

.
Reported-by: default avatarAshish Kunwar <dorkerdevil280@gmail.com>

The leak was mistakenly introduced by commit dc3618a1
-- probably as a leftover of testing things.
No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
...@@ -1184,6 +1184,7 @@ void discard_until(const undo *thisitem, openfilestruct *thefile, bool keep) ...@@ -1184,6 +1184,7 @@ void discard_until(const undo *thisitem, openfilestruct *thefile, bool keep)
free(group); free(group);
group = next; group = next;
} }
free(dropit);
dropit = thefile->undotop; dropit = thefile->undotop;
} }
......
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