[ros-diffs] [cwittich] 36341: fix some resource leaks