* xmlSchematronFreeTests: * @tests: a list of tests * * Free a list of tests. */
| 411 | * Free a list of tests. |
| 412 | */ |
| 413 | static void |
| 414 | xmlSchematronFreeTests(xmlSchematronTestPtr tests) { |
| 415 | xmlSchematronTestPtr next; |
| 416 | |
| 417 | while (tests != NULL) { |
| 418 | next = tests->next; |
| 419 | if (tests->test != NULL) |
| 420 | xmlFree(tests->test); |
| 421 | if (tests->comp != NULL) |
| 422 | xmlXPathFreeCompExpr(tests->comp); |
| 423 | if (tests->report != NULL) |
| 424 | xmlFree(tests->report); |
| 425 | xmlFree(tests); |
| 426 | tests = next; |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | /** |
| 431 | * xmlSchematronFreeLets: |
no test coverage detected