* xmlFreeNs: * @cur: the namespace pointer * * Free an xmlNs object. */
| 799 | * Free an xmlNs object. |
| 800 | */ |
| 801 | void |
| 802 | xmlFreeNs(xmlNsPtr cur) { |
| 803 | if (cur == NULL) { |
| 804 | return; |
| 805 | } |
| 806 | if (cur->href != NULL) xmlFree((char *) cur->href); |
| 807 | if (cur->prefix != NULL) xmlFree((char *) cur->prefix); |
| 808 | xmlFree(cur); |
| 809 | } |
| 810 | |
| 811 | /** |
| 812 | * xmlFreeNsList: |
no outgoing calls
no test coverage detected