* xmlDOMWrapNsMapFree: * @map: the ns-map * * Frees the ns-map */
| 7847 | * Frees the ns-map |
| 7848 | */ |
| 7849 | static void |
| 7850 | xmlDOMWrapNsMapFree(xmlNsMapPtr nsmap) |
| 7851 | { |
| 7852 | xmlNsMapItemPtr cur, tmp; |
| 7853 | |
| 7854 | if (nsmap == NULL) |
| 7855 | return; |
| 7856 | cur = nsmap->pool; |
| 7857 | while (cur != NULL) { |
| 7858 | tmp = cur; |
| 7859 | cur = cur->next; |
| 7860 | xmlFree(tmp); |
| 7861 | } |
| 7862 | cur = nsmap->first; |
| 7863 | while (cur != NULL) { |
| 7864 | tmp = cur; |
| 7865 | cur = cur->next; |
| 7866 | xmlFree(tmp); |
| 7867 | } |
| 7868 | xmlFree(nsmap); |
| 7869 | } |
| 7870 | |
| 7871 | /* |
| 7872 | * xmlDOMWrapNsMapAddItem: |
no outgoing calls
no test coverage detected