diff options
author | Tom Tromey <tom@tromey.com> | 2016-11-20 10:23:08 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-01-10 19:14:01 -0700 |
commit | 905f2ccab1b7070c7953e9f12de638e2dc147a9a (patch) | |
tree | a501a8cd1c13828313df4ca2f93cc213710177e3 /gdb/python/py-finishbreakpoint.c | |
parent | 64081434cce13f38288d82d3d31b6199e9deff4a (diff) | |
download | gdb-905f2ccab1b7070c7953e9f12de638e2dc147a9a.zip gdb-905f2ccab1b7070c7953e9f12de638e2dc147a9a.tar.gz gdb-905f2ccab1b7070c7953e9f12de638e2dc147a9a.tar.bz2 |
Use gdbpy_ref in py-cmd.c
This changes py-cmd.c to use gdbpy_ref in more places. This also
fixes a latent memory leak in cmdpy_completer_helper, which
unnecessarily increfs the result of PyObject_CallMethodObjArgs. This
is not needed because that function returns a new reference.
2017-01-10 Tom Tromey <tom@tromey.com>
* python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
extra incref.
(cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
Use gdbpy_ref.
Diffstat (limited to 'gdb/python/py-finishbreakpoint.c')
0 files changed, 0 insertions, 0 deletions