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

Function xmlFreeRef

ThirdParty/libxml2/vtklibxml2/valid.c:2627–2636  ·  view source on GitHub ↗

* xmlFreeRef: * @lk: A list link * * Deallocate the memory used by a ref definition */

Source from the content-addressed store, hash-verified

2625 * Deallocate the memory used by a ref definition
2626 */
2627static void
2628xmlFreeRef(xmlLinkPtr lk) {
2629 xmlRefPtr ref = (xmlRefPtr)xmlLinkGetData(lk);
2630 if (ref == NULL) return;
2631 if (ref->value != NULL)
2632 xmlFree((xmlChar *)ref->value);
2633 if (ref->name != NULL)
2634 xmlFree((xmlChar *)ref->name);
2635 xmlFree(ref);
2636}
2637
2638/**
2639 * xmlFreeRefTableEntry:

Callers

nothing calls this directly

Calls 1

xmlLinkGetDataFunction · 0.85

Tested by

no test coverage detected