int GenMemLeakRep() { ... xmlFreeDoc(doc); xmlCleanupParser(); xmlFreeDtd(dtd); ... free(doc); free(dtd); ... }
You are calling 'free' on allready invalid pointers in this function. Shoot him twice to make sure he's dead. eh? Ciao Igor