diff baum.c @ 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 88a51653db83
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);
 }