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

Function xmlCleanupMemoryInternal

ThirdParty/libxml2/vtklibxml2/xmlmemory.c:435–447  ·  view source on GitHub ↗

* xmlCleanupMemoryInternal: * * Free up all the memory allocated by the library for its own * use. This should not be called by user level code. */

Source from the content-addressed store, hash-verified

433 * use. This should not be called by user level code.
434 */
435void
436xmlCleanupMemoryInternal(void) {
437 /*
438 * Don't clean up mutex on Windows. Global state destructors can call
439 * malloc functions after xmlCleanupParser was called. If memory
440 * debugging is enabled, xmlMemMutex can be used after cleanup.
441 *
442 * See python/tests/thread2.py
443 */
444#if !defined(LIBXML_THREAD_ENABLED) || !defined(_WIN32)
445 xmlCleanupMutex(&xmlMemMutex);
446#endif
447}
448
449/**
450 * xmlMemSetup:

Callers 1

xmlCleanupParserFunction · 0.85

Calls 1

xmlCleanupMutexFunction · 0.85

Tested by

no test coverage detected