From 5d8d0b19be9944a7aba453ef2e36552b3b7acf82 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 26 May 2005 05:53:29 +0000 Subject: [PATCH] remove redundancy git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2549 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/global.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/global.c b/src/global.c index 6caf02c8..5c8cd08c 100644 --- a/src/global.c +++ b/src/global.c @@ -1216,12 +1216,9 @@ void thanks_for_all_the_fish(void) } #endif #ifdef ENABLE_MULTIBUFFER - if (open_files != NULL) { - /* Free the memory associated with each open file buffer. */ - while (open_files != open_files->prev) - open_files = open_files->prev; + /* Free the memory associated with each open file buffer. */ + if (open_files != NULL) free_openfilestruct(open_files); - } #else if (fileage != NULL) free_filestruct(fileage); -- 2.39.5