MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlDOMWrapNsMapFree

Function xmlDOMWrapNsMapFree

ThirdParty/libxml2/vtklibxml2/tree.c:7849–7869  ·  view source on GitHub ↗

* xmlDOMWrapNsMapFree: * @map: the ns-map * * Frees the ns-map */

Source from the content-addressed store, hash-verified

7847* Frees the ns-map
7848*/
7849static void
7850xmlDOMWrapNsMapFree(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:

Callers 4

xmlDOMWrapFreeCtxtFunction · 0.85
xmlDOMWrapAdoptBranchFunction · 0.85
xmlDOMWrapCloneNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected