* xmlFreeCatalog: * @catal: a Catalog * * Free the memory allocated to a Catalog */
| 406 | * Free the memory allocated to a Catalog |
| 407 | */ |
| 408 | void |
| 409 | xmlFreeCatalog(xmlCatalogPtr catal) { |
| 410 | if (catal == NULL) |
| 411 | return; |
| 412 | if (catal->xml != NULL) |
| 413 | xmlFreeCatalogEntryList(catal->xml); |
| 414 | if (catal->sgml != NULL) |
| 415 | xmlHashFree(catal->sgml, xmlFreeCatalogEntry); |
| 416 | xmlFree(catal); |
| 417 | } |
| 418 | |
| 419 | /************************************************************************ |
| 420 | * * |
no test coverage detected