From: Adam Dickmeiss Date: Fri, 18 Jan 2013 10:19:18 +0000 (+0100) Subject: Call xmlCleanupParser to free Libxml2 memory X-Git-Tag: v4.2.49~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=bbbc5ceb43ac100efb9e193fd87d364c18e77f7b;p=yaz-moved-to-github.git Call xmlCleanupParser to free Libxml2 memory This is to better check for memory leaks for ICU test. --- diff --git a/test/test_icu.c b/test/test_icu.c index b1de907..d5420f3 100644 --- a/test/test_icu.c +++ b/test/test_icu.c @@ -27,6 +27,10 @@ #include #endif +#if YAZ_HAVE_XML2 +#include +#endif + #include #include @@ -915,6 +919,10 @@ int main(int argc, char **argv) check_bug_1140(); u_cleanup(); +#if YAZ_HAVE_XML2 + xmlCleanupParser(); +#endif + #else /* YAZ_HAVE_ICU */ yaz_log(YLOG_LOG, "ICU unit tests omitted");