Fix erroneous cleanup use in add_solib_catchpoint
authorTom Tromey <tom@tromey.com>
Sun, 20 Aug 2017 04:15:30 +0000 (22:15 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 22 Aug 2017 15:38:06 +0000 (09:38 -0600)
commit36bd8eaaa0afe3ff8e8b1b1b9edc9686f5c159e6
tree86d1fc6b419819bf97b6685326ac37f1494a80db
parent56f37645249752378520a1c2430225c9cee09161
Fix erroneous cleanup use in add_solib_catchpoint

I happened to notice that add_solib_catchpoint allocated the new
catchpoint with "new" but installed a cleanup using "xfree".  This
patch fixes the bug by changing the function to use std::unique_ptr
instead.

ChangeLog
2017-08-22  Tom Tromey  <tom@tromey.com>

* breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
gdb/ChangeLog
gdb/breakpoint.c
This page took 0.025643 seconds and 4 git commands to generate.