really free xmid_data upon both failure _and_ success.