From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25830 invoked by alias); 26 Feb 2009 08:46:24 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 25805 invoked by uid 9514); 26 Feb 2009 08:46:23 -0000 Date: Thu, 26 Feb 2009 08:46:00 -0000 Message-ID: <20090226084623.25790.qmail@sourceware.org> From: pmuldoon@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-python: Clean-up value objects in apply_val_pretty_printer. X-Git-Refname: refs/heads/archer-tromey-python X-Git-Reftype: branch X-Git-Oldrev: b5235efef9aa1d619d8a5defc5aa1219dff76d3d X-Git-Newrev: cf7156e5eb72d57a6b886dfe862705fc210f6f67 X-SW-Source: 2009-q1/txt/msg00195.txt.bz2 List-Id: The branch, archer-tromey-python has been updated via cf7156e5eb72d57a6b886dfe862705fc210f6f67 (commit) from b5235efef9aa1d619d8a5defc5aa1219dff76d3d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit cf7156e5eb72d57a6b886dfe862705fc210f6f67 Author: Phil Muldoon Date: Thu Feb 26 08:45:21 2009 +0000 Clean-up value objects in apply_val_pretty_printer. 2009-02-26 Phil Muldoon * python/python.c (apply_val_pretty_printer): Clean-up value instance after search. ----------------------------------------------------------------------- Summary of changes: gdb/python/python.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) First 500 lines of diff: diff --git a/gdb/python/python.c b/gdb/python/python.c index 4d104c2..11b0aeb 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1527,6 +1527,7 @@ apply_val_pretty_printer (struct type *type, const gdb_byte *valaddr, /* Find the constructor. */ printer = find_pretty_printer (val_obj); + Py_DECREF (val_obj); make_cleanup_py_decref (printer); if (! printer || printer == Py_None) goto done; hooks/post-receive -- Repository for Project Archer.