Use unique_xmalloc_ptr in two solib functions
authorTom Tromey <tom@tromey.com>
Sun, 27 May 2018 15:27:56 +0000 (09:27 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 18 Jun 2018 19:26:32 +0000 (13:26 -0600)
commit309822ca289d602b9f9baf4760329ddd08b1d204
tree93818ea469b226ad9b0b8a8bd920d7826246aea8
parent06424eac62da949519c0c641fbc3e8372a9c7f0b
Use unique_xmalloc_ptr in two solib functions

This removes a couple of cleanups by using unique_xmalloc_ptr instead.
These two changes are combined because the two functions are very
similar.

gdb/ChangeLog
2018-06-18  Tom Tromey  <tom@tromey.com>

* solib-frv.c (frv_relocate_main_executable): Use
unique_xmalloc_ptr.
* solib-dsbt.c (dsbt_relocate_main_executable): Use
unique_xmalloc_ptr.
gdb/ChangeLog
gdb/solib-dsbt.c
gdb/solib-frv.c