diff options
Diffstat (limited to 'xmlmemory.c')
-rw-r--r-- | xmlmemory.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/xmlmemory.c b/xmlmemory.c index 712a967f..d8fa2b9c 100644 --- a/xmlmemory.c +++ b/xmlmemory.c @@ -812,6 +812,20 @@ xmlInitMemory(void) } /** + * xmlCleanupMemory: + * + * Free up all the memory associated with memorys + */ +void +xmlCleanupMemory(void) { + if (xmlMemInitialized == 0) + return; + + xmlFreeMutex(xmlMemMutex); + xmlMemInitialized = 0; +} + +/** * xmlMemSetup: * @freeFunc: the free() function to use * @mallocFunc: the malloc() function to use |