mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-08 10:42:00 +03:00
memory: plug a leak, by actually freeing a discarded undo struct
This fixes https://savannah.gnu.org/bugs/?53269.
Reported-by: Ashish Kunwar <dorkerdevil280@gmail.com>
The leak was mistakenly introduced by commit dc3618a1
-- probably as a leftover of testing things.
This commit is contained in:
parent
1ebb1da382
commit
e8505b2d3e
@ -1184,6 +1184,7 @@ void discard_until(const undo *thisitem, openfilestruct *thefile, bool keep)
|
||||
free(group);
|
||||
group = next;
|
||||
}
|
||||
free(dropit);
|
||||
dropit = thefile->undotop;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user