switching xmlMalloc to regular int

but doesn't help the crashing