Пример #1
0
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;
}
Пример #2
0
/**
 * xmlCleanupGlobals:
 *
 * Additional cleanup for multi-threading
 */
void xmlCleanupGlobals()
{
    if (xmlThrDefMutex != NULL) {
	xmlFreeMutex(xmlThrDefMutex);
	xmlThrDefMutex = NULL;
    }
}
Пример #3
0
  /*
   * Destructor
   */
  adfilter::~adfilter()
  {
    // libXML2 mutex
    xmlFreeMutex(this->mutexTok);

    // libXML2 memory clean
    xmlCleanupParser();
  }
Пример #4
0
/**
 * xmlCleanupGlobals:
 *
 * Additional cleanup for multi-threading
 */
void xmlCleanupGlobals(void)
{
    if (xmlThrDefMutex != NULL) {
	xmlFreeMutex(xmlThrDefMutex);
	xmlThrDefMutex = NULL;
    }
    __xmlGlobalInitMutexDestroy();
}
Пример #5
0
/**
 * 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     
}