]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove a cleanup from scm-frame.c
authorTom Tromey <tom@tromey.com>
Sat, 21 Apr 2018 22:38:33 +0000 (16:38 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 23 Apr 2018 23:50:19 +0000 (17:50 -0600)
commita95c7daba4c74e61ac37ffaaaa0ba49bf16e474e
treed1faca1e89d74c600f07d762fdf4566a537762f0
parent458412c36845f20bcfef47eef3005fb2054a7695
Remove a cleanup from scm-frame.c

This removes a cleanup from scm-frame.c, replacing it with
unique_xmalloc_ptr and a new scope.  I believe this also fixes a
latent bug involving calling do_cleanups twice for a single cleanup.

Regression tested using the gdb.guile test suite on x86-64 Fedora 26.

ChangeLog
2018-04-23  Tom Tromey  <tom@tromey.com>

* guile/scm-frame.c (gdbscm_frame_read_var): Use
gdb::unique_xmalloc_ptr.
gdb/ChangeLog
gdb/guile/scm-frame.c