commit e8505b2d3ed490be3ab04006b3d7569c261581f4
parent 1ebb1da382170db9b2f3d620d05cfb794212cc3a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 11 Mar 2018 20:06:24 +0100
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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;
}