Use gdb::unique_ptr in elf_read_minimal_symbols
authorTom Tromey <tom@tromey.com>
Sun, 25 Sep 2016 03:31:36 +0000 (21:31 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 21 Oct 2016 20:17:36 +0000 (14:17 -0600)
commitd1e4a624699fd734b3b6e87fb79a4da71c182dfd
tree112349de52e0105c4526f83da0bd1cb32b687635
parentcd9da5b077c21f0984cfbdac060ced6f4945ce06
Use gdb::unique_ptr in elf_read_minimal_symbols

This changes elf_read_minimal_symbols to use gdb::unique_ptr rather
than an explicit allocation.  This removes a cleanup.

2016-10-21  Tom Tromey  <tom@tromey.com>

* elfread.c (elf_read_minimal_symbols): Use gdb::unique_ptr.
gdb/ChangeLog
gdb/elfread.c