[ros-diffs] [gvg] 18524: First use "ptr", then set it to NULL