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

Function xmlXPathFreeContext

ThirdParty/libxml2/vtklibxml2/xpath.c:5146–5157  ·  view source on GitHub ↗

* xmlXPathFreeContext: * @ctxt: the context to free * * Free up an xmlXPathContext */

Source from the content-addressed store, hash-verified

5144 * Free up an xmlXPathContext
5145 */
5146void
5147xmlXPathFreeContext(xmlXPathContextPtr ctxt) {
5148 if (ctxt == NULL) return;
5149
5150 if (ctxt->cache != NULL)
5151 xmlXPathFreeCache((xmlXPathContextCachePtr) ctxt->cache);
5152 xmlXPathRegisteredNsCleanup(ctxt);
5153 xmlXPathRegisteredFuncsCleanup(ctxt);
5154 xmlXPathRegisteredVariablesCleanup(ctxt);
5155 xmlResetError(&ctxt->lastError);
5156 xmlFree(ctxt);
5157}
5158
5159/**
5160 * xmlXPathSetErrorHandler:

Callers 15

closeFileMethod · 0.85
readSingleNodeMethod · 0.85
doXPathQueryFunction · 0.85
mainFunction · 0.85
xmlXPathNewContextFunction · 0.85
xmlXPathCtxtCompileFunction · 0.85
xmlXIncludeFreeContextFunction · 0.85
runtest.cFile · 0.85
load_xpath_exprFunction · 0.85
xmlShellLoadFunction · 0.85

Calls 5

xmlXPathFreeCacheFunction · 0.85
xmlResetErrorFunction · 0.85

Tested by 1

load_xpath_exprFunction · 0.68