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

Function xmlCatalogCleanup

ThirdParty/libxml2/vtklibxml2/catalog.c:3214–3233  ·  view source on GitHub ↗

* xmlCatalogCleanup: * * Free up all the memory associated with catalogs */

Source from the content-addressed store, hash-verified

3212 * Free up all the memory associated with catalogs
3213 */
3214void
3215xmlCatalogCleanup(void) {
3216 if (xmlCatalogInitialized == 0)
3217 return;
3218
3219 xmlRMutexLock(xmlCatalogMutex);
3220 if (xmlDebugCatalogs)
3221 fprintf(stderr,
3222 "Catalogs cleanup\n");
3223 if (xmlCatalogXMLFiles != NULL)
3224 xmlHashFree(xmlCatalogXMLFiles, xmlFreeCatalogHashEntryList);
3225 xmlCatalogXMLFiles = NULL;
3226 if (xmlDefaultCatalog != NULL)
3227 xmlFreeCatalog(xmlDefaultCatalog);
3228 xmlDefaultCatalog = NULL;
3229 xmlDebugCatalogs = 0;
3230 xmlCatalogInitialized = 0;
3231 xmlRMutexUnlock(xmlCatalogMutex);
3232 xmlFreeRMutex(xmlCatalogMutex);
3233}
3234
3235/**
3236 * xmlCatalogResolveSystem:

Callers 2

xmlCleanupParserFunction · 0.85
testThreadFunction · 0.85

Calls 6

xmlRMutexLockFunction · 0.85
fprintfFunction · 0.85
xmlHashFreeFunction · 0.85
xmlFreeCatalogFunction · 0.85
xmlRMutexUnlockFunction · 0.85
xmlFreeRMutexFunction · 0.85

Tested by 1

testThreadFunction · 0.68