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

Function xmlXPathCacheFreeObjectList

ThirdParty/libxml2/vtklibxml2/xpath.c:1568–1585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1566}
1567
1568static void
1569xmlXPathCacheFreeObjectList(xmlXPathObjectPtr list)
1570{
1571 while (list != NULL) {
1572 xmlXPathObjectPtr next;
1573
1574 next = (void *) list->stringval;
1575
1576 if (list->nodesetval != NULL) {
1577 if (list->nodesetval->nodeTab != NULL)
1578 xmlFree(list->nodesetval->nodeTab);
1579 xmlFree(list->nodesetval);
1580 }
1581 xmlFree(list);
1582
1583 list = next;
1584 }
1585}
1586
1587static void
1588xmlXPathFreeCache(xmlXPathContextCachePtr cache)

Callers 1

xmlXPathFreeCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected