changeset 27:1c3dd1e88bdf

empty stack at the end (thanks valgrind to show me this)
author meillo@marmaro.de
date Thu, 21 Feb 2008 10:09:36 +0100
parents f0856c177403
children ed3eb4b497e5
files baum.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/baum.c	Tue Feb 19 22:23:37 2008 +0100
+++ b/baum.c	Thu Feb 21 10:09:36 2008 +0100
@@ -211,6 +211,11 @@
 
 	}
 
+	/* empty stack */
+	while (stack != NULL) {
+		pull();
+	}
+
 	fclose(file);
 }