Use unique_xmalloc_ptr in cd_command
authorTom Tromey <tom@tromey.com>
Sun, 13 Aug 2017 20:34:59 +0000 (14:34 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 3 Sep 2017 19:03:06 +0000 (13:03 -0600)
commit6eecf35f97e1d37e49e385ba599797dd1c8afd1f
tree2064a4866e0da988dc727f130cd496e4c5271e14
parent56496dd4d6519c26bb375a78588bf56b28b13512
Use unique_xmalloc_ptr in cd_command

Change cd_command to use unique_xmalloc_ptr, removing a cleanup.

ChangeLog
2017-09-03  Tom Tromey  <tom@tromey.com>

* cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
gdb/ChangeLog
gdb/cli/cli-cmds.c