projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d96575f
)
Call xmlCleanupParser to free Libxml2 memory
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 18 Jan 2013 10:19:18 +0000
(11:19 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 18 Jan 2013 10:19:18 +0000
(11:19 +0100)
This is to better check for memory leaks for ICU test.
test/test_icu.c
patch
|
blob
|
history
diff --git
a/test/test_icu.c
b/test/test_icu.c
index
b1de907
..
d5420f3
100644
(file)
--- a/
test/test_icu.c
+++ b/
test/test_icu.c
@@
-27,6
+27,10
@@
#include <pthread.h>
#endif
+#if YAZ_HAVE_XML2
+#include <libxml/xmlmemory.h>
+#endif
+
#include <string.h>
#include <stdlib.h>
@@
-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");