gdb: remove xfree in xml-support.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 14 Sep 2020 15:12:55 +0000 (11:12 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 14 Sep 2020 15:30:58 +0000 (11:30 -0400)
commit33f4dd48cefa64257880e6d98124c3f3e54f5196
treefc9aaf9e4dc34c49468172684d9b33b271a56b56
parent8400a90d19c5c53f7100421c688fb896789048b9
gdb: remove xfree in xml-support.c

Replace an xfree with automatic memory management with a unique pointer.

gdb/ChangeLog:

* xml-support.c (xml_fetch_content_from_file): Replace xfree
with gdb::unique_xmalloc_ptr<char>.

Change-Id: Ia4d735b383e3b9eb660f445f2c7f2c5e27411b64
gdb/ChangeLog
gdb/xml-support.c