From: David Lawrence Ramsey Date: Tue, 19 Jul 2005 04:50:55 +0000 (+0000) Subject: add missing blank lines X-Git-Tag: v1.3.9~151 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=826fbea8e19e11a173195213bdba52ddafdd6592;p=nano.git add missing blank lines git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2895 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/nano.c b/src/nano.c index 30dc56c3..78bacb13 100644 --- a/src/nano.c +++ b/src/nano.c @@ -140,6 +140,7 @@ void delete_node(filestruct *fileptr) if (fileptr->data != NULL) free(fileptr->data); + free(fileptr); } @@ -162,6 +163,7 @@ filestruct *copy_filestruct(const filestruct *src) src = src->next; } + copy->next = NULL; return head; @@ -176,6 +178,7 @@ void free_filestruct(filestruct *src) src = src->next; delete_node(src->prev); } + delete_node(src); }