From bbbc5ceb43ac100efb9e193fd87d364c18e77f7b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 18 Jan 2013 11:19:18 +0100 Subject: [PATCH] Call xmlCleanupParser to free Libxml2 memory This is to better check for memory leaks for ICU test. --- test/test_icu.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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"); -- 1.7.10.4