Replace all occurences of free() with xfree()