From: David Lawrence Ramsey Date: Thu, 14 Dec 2006 21:57:03 +0000 (+0000) Subject: miscellaneous minor fixes X-Git-Tag: v2.0.2~7 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8060d66158cb77e574faf88046e2134be5869258;p=nano.git miscellaneous minor fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3998 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- 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) {