Commit f8f2138b authored by Benjamin Peterson's avatar Benjamin Peterson

fix refleak in reduce_2 error case

parent 26c985a8
......@@ -3286,7 +3286,7 @@ reduce_2(PyObject *obj)
PyErr_Format(PyExc_TypeError,
"can't pickle %.200s objects",
((PyTypeObject *)cls)->tp_name);
return NULL;
goto end;
}
getnewargs = PyObject_GetAttrString(obj, "__getnewargs__");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment