Remove a use of xfree in location.c
authorTom Tromey <tom@tromey.com>
Fri, 14 Jan 2022 14:24:18 +0000 (07:24 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 18 Jan 2022 17:00:00 +0000 (10:00 -0700)
commitdab863ef408588aba1c396901e3e5070948d2047
tree9ce96ef1d6d47d125ba54fd3d235f4d41d2eb281
parente53c95d40b128a1e794b27ec8b166ae1445356eb
Remove a use of xfree in location.c

This small cleanup removes a use of xfree from location.c, by
switching to unique_xmalloc_ptr.  One function is only used in
location.c, so it is made static.  And, another function is changed to
avoid a copy.
gdb/linespec.c
gdb/location.c
gdb/location.h