commit | f8f2138bd4c715f249f397c8f56cf75dec080931 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Dec 03 12:08:24 2016 -0800 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Dec 03 12:08:24 2016 -0800 |
tree | fdb69f03ee11f52a2f44211c6032518b565203f0 | |
parent | 26c985a8aac1640b5cda1ff278f749933aa118c3 [diff] |
fix refleak in reduce_2 error case
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 738ff86..30da5db 100644 --- 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__");