A peace officer who arrests a person accompanied by a child of the person may release the child to any person designated by the parent unless it is necessary to remove the child under section 260C.175 because the child is found in surroundings or conditions which endanger the child’s health or welfare or which the peace officer reasonably believes will endanger the child’s health or welfare. An officer releasing a child under this section to a person designated by the parent has no civil or criminal liability for the child’s release.