miscellaneous minor fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3998 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
David Lawrence Ramsey 2006-12-14 21:57:03 +00:00
parent 4c19415ecf
commit 8060d66158
1 changed files with 4 additions and 2 deletions

View File

@ -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) {