[Python-checkins] cpython (2.7): fix refleak in reduce_2 error case
benjamin.peterson
python-checkins at python.org
Sat Dec 3 15:08:31 EST 2016
https://hg.python.org/cpython/rev/6a3f50f1cfdb
changeset: 105430:6a3f50f1cfdb
branch: 2.7
user: Benjamin Peterson <benjamin at python.org>
date: Sat Dec 03 12:08:24 2016 -0800
summary:
fix refleak in reduce_2 error case
files:
Objects/typeobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -3286,7 +3286,7 @@
PyErr_Format(PyExc_TypeError,
"can't pickle %.200s objects",
((PyTypeObject *)cls)->tp_name);
- return NULL;
+ goto end;
}
getnewargs = PyObject_GetAttrString(obj, "__getnewargs__");
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list