Changed xfree to NM_FREE, which calls xfree.