Remove cleanup from add_path
authorTom Tromey <tom@tromey.com>
Thu, 30 Aug 2018 04:42:57 +0000 (22:42 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 13 Sep 2018 22:22:33 +0000 (16:22 -0600)
commitdb68fbe2f946cb36359c8672548fde198f812c4e
tree0109849ea2f49b243c4c14896847c45d69c68b65
parent74d3fbbb3e35129526392718b63df41be3b0e88b
Remove cleanup from add_path

This removes a cleanup from add_path, replacing it with a use of
gdb::unique_xmalloc_ptr.  Note that this declaration had to be hoisted
somewhat, to avoid inteference from the "goto"s in this function.

gdb/ChangeLog
2018-09-13  Tom Tromey  <tom@tromey.com>

* source.c (add_path): Use gdb::unique_xmalloc_ptr.
gdb/ChangeLog
gdb/source.c