From 8060d66158cb77e574faf88046e2134be5869258 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 14 Dec 2006 21:57:03 +0000 Subject: [PATCH] miscellaneous minor fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3998 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/files.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/files.c b/src/files.c index b83e6596..35dbb228 100644 --- a/src/files.c +++ b/src/files.c @@ -1901,8 +1901,10 @@ int do_writeout(bool exiting) full_filename != NULL && strcmp(full_answer, full_filename) != 0); - free(full_filename); - free(full_answer); + if (full_filename != NULL) + free(full_filename); + if (full_answer != NULL) + free(full_answer); if (different_name) { if (name_exists) { -- 2.39.5