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