[ros-diffs] [cwittich] 46257: fix memory leak on error path