cpython: 6454e5de7c34 (original) (raw)

Mercurial > cpython

changeset 74939:6454e5de7c34 3.2

Issue #13020: Fix a reference leak when allocating a structsequence object fails. Patch by Suman Saha. [#13020]

Antoine Pitrou solipsis@pitrou.net
date Wed, 15 Feb 2012 02:51:43 +0100
parents 86adb5c7a9d4
children 7f267a650a1d
files Misc/NEWS Objects/structseq.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-)[+] [-] Misc/NEWS 3 Objects/structseq.c 1

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ What's New in Python 3.2.3? Core and Builtins ----------------- +- Issue #13020: Fix a reference leak when allocating a structsequence object

--- a/Objects/structseq.c +++ b/Objects/structseq.c @@ -129,6 +129,7 @@ structseq_new(PyTypeObject type, PyObje res = (PyStructSequence) PyStructSequence_New(type); if (res == NULL) {