cpython: 08a85fc85bf2 (original) (raw)

Mercurial > cpython

changeset 74943:08a85fc85bf2 2.7

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 7611fb3e19c6
children d40e1e133039
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 @@ -9,6 +9,9 @@ What's New in Python 2.7.3? Core and Builtins ----------------- +- Issue #13020: Fix a reference leak when allocating a structsequence object

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