/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk

« back to all changes in this revision

Viewing changes to validate/libxml.c

  • Committer: Suren A. Chilingaryan
  • Date: 2009-09-23 17:13:04 UTC
  • Revision ID: csa@dside.dyndns.org-20090923171304-osvtr4zqb29h11kd
Intel, Tango, Phobos, and RapidXML parsers; Memory benchmark scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    xmlSchemaFree(xsdschema);
40
40
    xmlSchemaFreeParserCtxt(xsdctx);
41
41
#endif /* LIBXML_SCHEMAS_ENABLED */
42
 
    xmlFreeDoc(doc);    
 
42
    if (doc) {
 
43
        xmlFreeDoc(doc);    
 
44
        doc = NULL;
 
45
    }
43
46
    xmlCleanupParser();
44
47
}
45
48