about summary refs log tree commit diff stats
path: root/src/LYMain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYMain.c')
-rw-r--r--src/LYMain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LYMain.c b/src/LYMain.c
index 851b93ae..5365513a 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -1809,7 +1809,9 @@ PUBLIC int main ARGS2(
 	if (persistent_cookies)
 	    LYStoreCookies(LYCookieFile);
 #endif /* EXP_PERSISTENT_COOKIES */
+	cleanup_files();
 	exit_immediately(status);
+	cleanup_files();
     } else {
 	/*
 	 *  Start an INTERACTIVE session. - FM