diff options
Diffstat (limited to 'runtest.c')
-rw-r--r-- | runtest.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2926,14 +2926,13 @@ schemasOneTest(const char *sch, unlink(temp); free(temp); - if (err != NULL) { + if ((ret != 0) && (err != NULL)) { if (compareFileMem(err, testErrors, testErrorsSize)) { fprintf(stderr, "Error for %s on %s failed\n", filename, sch); ret = 1; } } - xmlSchemaFreeValidCtxt(ctxt); xmlFreeDoc(doc); return(ret); |