diff options
author | Tom Tromey <tom@tromey.com> | 2016-11-12 12:08:17 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-01-10 19:13:59 -0700 |
commit | 9de10f6d53dffbec12cec9843662d5764526983d (patch) | |
tree | f574cb2515db4b60057e0a731842edac2f1e9c32 /gdb/eval.c | |
parent | 2bd5759dcb71adfb26b1c7cf20b3b032af29b845 (diff) | |
download | gdb-9de10f6d53dffbec12cec9843662d5764526983d.zip gdb-9de10f6d53dffbec12cec9843662d5764526983d.tar.gz gdb-9de10f6d53dffbec12cec9843662d5764526983d.tar.bz2 |
Change python_run_simple_file to use gdbpy_ref
This changes python_run_simple_file to use gdbpy_ref and
unique_xmalloc_ptr. Thi fixes a latent bug in this function, where
the error path previously ran the cleanups and then referred to one of
the objects just freed.
2017-01-10 Tom Tromey <tom@tromey.com>
* python/python.c (python_run_simple_file): Use
unique_xmalloc_ptr, gdbpy_ref.
Diffstat (limited to 'gdb/eval.c')
0 files changed, 0 insertions, 0 deletions