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

Function xmlXPathFreeObject

ThirdParty/libxml2/vtklibxml2/xpath.c:4542–4558  ·  view source on GitHub ↗

* xmlXPathFreeObject: * @obj: the object to free * * Free up an xmlXPathObjectPtr object. */

Source from the content-addressed store, hash-verified

4540 * Free up an xmlXPathObjectPtr object.
4541 */
4542void
4543xmlXPathFreeObject(xmlXPathObjectPtr obj) {
4544 if (obj == NULL) return;
4545 if ((obj->type == XPATH_NODESET) || (obj->type == XPATH_XSLT_TREE)) {
4546 if (obj->nodesetval != NULL)
4547 xmlXPathFreeNodeSet(obj->nodesetval);
4548#ifdef LIBXML_XPTR_LOCS_ENABLED
4549 } else if (obj->type == XPATH_LOCATIONSET) {
4550 if (obj->user != NULL)
4551 xmlXPtrFreeLocationSet(obj->user);
4552#endif
4553 } else if (obj->type == XPATH_STRING) {
4554 if (obj->stringval != NULL)
4555 xmlFree(obj->stringval);
4556 }
4557 xmlFree(obj);
4558}
4559
4560static void
4561xmlXPathFreeObjectEntry(void *obj, const xmlChar *name ATTRIBUTE_UNUSED) {

Callers 15

readSingleNodeMethod · 0.85
readPathObjectsMethod · 0.85
doXPathQueryFunction · 0.85
xmlXPathFreeCompExprFunction · 0.85
valuePushFunction · 0.85
xmlXPathFreeObjectEntryFunction · 0.85
xmlXPathReleaseObjectFunction · 0.85
xmlXPathConvertStringFunction · 0.85
xmlXPathConvertNumberFunction · 0.85
xmlXPathConvertBooleanFunction · 0.85
xmlXPathCompareNodeSetsFunction · 0.85

Calls 2

xmlXPathFreeNodeSetFunction · 0.85
xmlXPtrFreeLocationSetFunction · 0.70

Tested by 1

c14nRunTestFunction · 0.68