From 8c5a4d949ee8ffe4ac7f373e667f2f8930db4543 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 21 Sep 2010 19:49:08 +0100 Subject: [PATCH] leak: Clear history before exiting guestfish. Clear the in-memory history before exiting. This removes some but not all memory leaks associated with using the GNU History library. As far as I can tell it is not possible to free up everything used by GNU History. (Found by valgrind). --- fish/fish.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fish/fish.c b/fish/fish.c index de11b2f..6192860 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -1436,6 +1436,7 @@ cleanup_readline (void) #else (void) write_history (histfile); #endif + clear_history (); } #endif } -- 1.8.3.1