Replace two xmallocs with unique_ptr
authorTom Tromey <tom@tromey.com>
Sun, 25 Sep 2016 03:21:35 +0000 (21:21 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 21 Oct 2016 20:17:35 +0000 (14:17 -0600)
commitcd9da5b077c21f0984cfbdac060ced6f4945ce06
treef9ab9d7adc7b55c3744a9b3729af3a2eb7876701
parent1e3b796d58ac3c4396e1739f44a0a41de6335eef
Replace two xmallocs with unique_ptr

This replaces a couple of uses of xmalloc with gdb::unique_ptr, also
removing a couple of cleanups.

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

* cli/cli-dump.c (dump_memory_to_file): Use gdb::unique_ptr.
(restore_binary_file): Likewise.
gdb/ChangeLog
gdb/cli/cli-dump.c
This page took 0.025887 seconds and 4 git commands to generate.