From 826fbea8e19e11a173195213bdba52ddafdd6592 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Tue, 19 Jul 2005 04:50:55 +0000 Subject: [PATCH] add missing blank lines git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2895 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/nano.c | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.39.5