| Index: gdb/python/py-stopevent.c
|
| diff --git a/gdb/python/py-stopevent.c b/gdb/python/py-stopevent.c
|
| index 7e0094848dd51fafb7c1cd63a1f854e456bc4c1e..8e03c04354a1a904583e41140b2154800e5f0300 100644
|
| --- a/gdb/python/py-stopevent.c
|
| +++ b/gdb/python/py-stopevent.c
|
| @@ -1,6 +1,6 @@
|
| /* Python interface to inferior stop events.
|
|
|
| - Copyright (C) 2009-2012 Free Software Foundation, Inc.
|
| + Copyright (C) 2009-2013 Free Software Foundation, Inc.
|
|
|
| This file is part of GDB.
|
|
|
| @@ -17,6 +17,7 @@
|
| You should have received a copy of the GNU General Public License
|
| along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
| +#include "defs.h"
|
| #include "py-stopevent.h"
|
|
|
| PyObject *
|
| @@ -81,6 +82,7 @@ emit_stop_event (struct bpstats *bs, enum gdb_signal stop_signal)
|
| stop_event_obj = create_breakpoint_event_object (list, first_bp);
|
| if (!stop_event_obj)
|
| goto fail;
|
| + Py_DECREF (list);
|
| }
|
|
|
| /* Check if the signal is "Signal 0" or "Trace/breakpoint trap". */
|
|
|