int main(int argc, char *argv[]) { printf("RarCrack! 0.2 by David Zoltan Kedves ([email protected])\n\n"); init(argc,argv); if (ABC != (char*) &default_ABC) xmlFree(ABC); if (status) xmlFreeDoc(status); xmlFreeMutex(pwdMutex); xmlFreeMutex(finishedMutex); return EXIT_SUCCESS; }
/** * xmlCleanupGlobals: * * Additional cleanup for multi-threading */ void xmlCleanupGlobals() { if (xmlThrDefMutex != NULL) { xmlFreeMutex(xmlThrDefMutex); xmlThrDefMutex = NULL; } }
/* * Destructor */ adfilter::~adfilter() { // libXML2 mutex xmlFreeMutex(this->mutexTok); // libXML2 memory clean xmlCleanupParser(); }
/** * xmlCleanupGlobals: * * Additional cleanup for multi-threading */ void xmlCleanupGlobals(void) { if (xmlThrDefMutex != NULL) { xmlFreeMutex(xmlThrDefMutex); xmlThrDefMutex = NULL; } __xmlGlobalInitMutexDestroy(); }
/** * xmlCleanupMemory: * * Free up all the memory allocated by the library for its own * use. This should not be called by user level code. */ void xmlCleanupMemory(void) { #ifdef DEBUG_MEMORY xmlGenericError(xmlGenericErrorContext, "xmlCleanupMemory()\n"); #endif if (xmlMemInitialized == 0) return; xmlFreeMutex(xmlMemMutex); xmlMemMutex = NULL; xmlMemInitialized = 0; #ifdef DEBUG_MEMORY xmlGenericError(xmlGenericErrorContext, "xmlCleanupMemory() Ok\n"); #endif }