Function xfree_f checks for NULL pointer.