fixed bug #81159 (memory growth in SAX)
diff --git a/parser.c b/parser.c
index 027643f..98d1483 100644
--- a/parser.c
+++ b/parser.c
@@ -7985,6 +7985,8 @@
 #endif
 
     while (1) {
+	SHRINK;
+
 	/*
 	 * Pop-up of finished entities.
 	 */