[ros-diffs] [weiden] 29909: Fix memory leaks/wrong heap usage by replacing calls to _tcsdup with cmd_dup