leak: Clear history before exiting guestfish.
[libguestfs.git] / fish / fish.c
index de11b2f..6192860 100644 (file)
@@ -1436,6 +1436,7 @@ cleanup_readline (void)
 #else
     (void) write_history (histfile);
 #endif
+    clear_history ();
   }
 #endif
 }