]> granicus.if.org Git - php/commitdiff
Fixed memleak when the libxml compat layer is used.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 8 May 2003 15:07:26 +0000 (15:07 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 8 May 2003 15:07:26 +0000 (15:07 +0000)
ext/xml/xml.c

index 6b4a57a27f9015c36ec8075d8ea2613745f85c94..0521445b8df9b40afbc7996f31dd6cc3c1013423 100644 (file)
@@ -245,7 +245,10 @@ PHP_MSHUTDOWN_FUNCTION(xml)
 
 PHP_RSHUTDOWN_FUNCTION(xml)
 {
-    return SUCCESS;
+#ifdef LIBXML_EXPAT_COMPAT
+       xmlCleanupParser();
+#endif 
+       return SUCCESS;
 }