Changeset 293
- Timestamp:
- 06/13/10 12:44:01 (20 months ago)
- Location:
- trunk/src
- Files:
-
- 6 modified
-
fe/fe_filter.c (modified) (3 diffs)
-
ows/ows.c (modified) (3 diffs)
-
ows/ows_config.c (modified) (3 diffs)
-
ows/ows_request.c (modified) (3 diffs)
-
struct/cgi_request.c (modified) (2 diffs)
-
wfs/wfs_transaction.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/fe/fe_filter.c
r262 r293 441 441 } 442 442 443 xmlInitParser();444 LIBXML_TEST_VERSION445 446 443 xmldoc = xmlParseMemory(xmlchar->buf, xmlchar->use); 447 444 … … 449 446 fe->error_code = FE_ERROR_FILTER; 450 447 xmlFreeDoc(xmldoc); 451 xmlCleanupParser();452 448 return fe; 453 449 } … … 479 475 480 476 xmlFreeDoc(xmldoc); 481 xmlCleanupParser();482 477 483 478 return fe; -
trunk/src/ows/ows.c
r289 r293 337 337 buffer_add_str(o->config_file, OWS_CONFIG_FILE_PATH); 338 338 339 LIBXML_TEST_VERSION 340 339 341 /* Parse the configuration file and initialize ows struct */ 340 342 if (!o->exit) ows_parse_config(o, o->config_file->buf); … … 353 355 if (!o->exit) ows_layers_storage_fill(o); 354 356 if (!o->exit) ows_log(o, 2, "== Filling Storage =="); 355 356 357 357 358 … … 446 447 OS_LibShutdown(); 447 448 #endif 449 xmlCleanupParser(); 448 450 ows_log(o, 2, "== TINYOWS SHUTDOWN =="); 449 451 if (o->log) fclose (o->log); -
trunk/src/ows/ows_config.c
r278 r293 755 755 assert(filename != NULL); 756 756 757 xmlInitParser();758 757 r = xmlReaderForFile(filename, "UTF-8", 0); 759 758 760 759 if (r == NULL) { 761 xmlCleanupParser();762 760 ows_error(o, OWS_ERROR_CONFIG_FILE, "Unable to open config file !", 763 761 "parse_config_file"); … … 800 798 if (ret != 0) { 801 799 xmlFreeTextReader(r); 802 xmlCleanupParser();803 800 ows_error(o, OWS_ERROR_CONFIG_FILE, "Unable to open config file !", 804 801 "parse_config_file"); … … 807 804 808 805 xmlFreeTextReader(r); 809 xmlCleanupParser();810 806 811 807 ows_config_check(o); -
trunk/src/ows/ows_request.c
r285 r293 131 131 /* 132 132 * Valid an xml string against an XML schema 133 * Inpired from: http://xml.developpez.com/sources/?page=validation#validate_XSD_CppCLI_2134 133 */ 135 134 int ows_schema_validation(const ows *o, buffer * xml_schema, buffer * xml, bool schema_is_file) … … 163 162 if (schema == NULL) { 164 163 xmlSchemaCleanupTypes(); 165 xmlMemoryDump();166 xmlCleanupParser();167 164 return ret; 168 165 } … … 183 180 xmlSchemaFree(schema); 184 181 xmlFreeDoc(doc); 185 xmlCleanupParser();186 182 187 183 return ret; -
trunk/src/struct/cgi_request.c
r287 r293 464 464 n = NULL; 465 465 466 xmlInitParser();467 466 xmldoc = xmlParseMemory(query, strlen(query)); 468 467 469 468 if (!xmldoc || (n = xmlDocGetRootElement(xmldoc)) == NULL) { 470 469 xmlFreeDoc(xmldoc); 471 xmlCleanupParser();472 470 ows_error(o, OWS_ERROR_INVALID_PARAMETER_VALUE, "xml isn't valid", 473 471 "request"); … … 608 606 609 607 xmlFreeDoc(xmldoc); 610 xmlCleanupParser();611 608 612 609 return arr; -
trunk/src/wfs/wfs_transaction.c
r286 r293 914 914 content = NULL; 915 915 916 xmlInitParser();917 916 xmldoc = xmlParseMemory(op->buf, op->use); 918 917 919 918 if (!xmldoc) { 920 919 xmlFreeDoc(xmldoc); 921 xmlCleanupParser();922 920 wfs_error(o, wr, WFS_ERROR_NO_MATCHING, "xml isn't valid", "transaction"); 923 921 return; … … 996 994 997 995 xmlFreeDoc(xmldoc); 998 xmlCleanupParser();999 996 } 1000 997