- added the patch from Carl Nygard <cnygard@bellatlantic.net>
   which allow impressive speed improvement on dataset with large text
   pieces, but at the cost of broken binary compatibility and slightly
   bigger memory usage.  Configure with --with-buffers to activate them,
   they are protected with XML_USE_BUFFER_CONTENT define.
 - added xmlCleanupPredefinedEntities(), memory allocation cleanup
Daniel
diff --git a/entities.c b/entities.c
index 78571e0..8818f45 100644
--- a/entities.c
+++ b/entities.c
@@ -149,6 +149,18 @@
 }
 
 /**
+ * xmlCleanupPredefinedEntities:
+ *
+ * Cleanup up the predefined entities table.
+ */
+void xmlCleanupPredefinedEntities(void) {
+    if (xmlPredefinedEntities == NULL) return;
+
+    xmlFreeEntitiesTable(xmlPredefinedEntities);
+    xmlPredefinedEntities = NULL;
+}
+
+/**
  * xmlGetPredefinedEntity:
  * @name:  the entity name
  *