Code calls xfree() instead of free().