Yan Seiner wrote:
there some special way I need to free these pointers: I am freeing them in the following order: xmlFree(xpathCtx); xmlFree(xpathObj); xmlFreeDoc(doc);
Sorry! That's actually xmlFree(xpathObj); xmlFree(xpathCtx); xmlFreeDoc(doc);