Index: third_party/libxml/runsuite.c |
diff --git a/third_party/libxml/runsuite.c b/third_party/libxml/runsuite.c |
index 744875c7b8b30bc24cf9d003cba74344d7e38406..e6545fb5e431f27065ffa56c1250064f916a847a 100644 |
--- a/third_party/libxml/runsuite.c |
+++ b/third_party/libxml/runsuite.c |
@@ -307,7 +307,7 @@ getString(xmlNodePtr cur, const char *xpath) { |
* * |
************************************************************************/ |
-static int |
+static int |
xsdIncorectTestCase(xmlNodePtr cur) { |
xmlNodePtr test; |
xmlBufferPtr buf; |
@@ -319,7 +319,7 @@ xsdIncorectTestCase(xmlNodePtr cur) { |
if (cur == NULL) { |
return(0); |
} |
- |
+ |
test = getNext(cur, "./*"); |
if (test == NULL) { |
test_log("Failed to find test in correct line %ld\n", |
@@ -358,7 +358,7 @@ done: |
if (rng != NULL) |
xmlRelaxNGFree(rng); |
xmlResetLastError(); |
- if ((memt != xmlMemUsed()) && (extraMemoryFromResolver == 0)) { |
+ if ((memt < xmlMemUsed()) && (extraMemoryFromResolver == 0)) { |
test_log("Validation of tests starting line %ld leaked %d\n", |
xmlGetLineNo(cur), xmlMemUsed() - memt); |
nb_leaks++; |