summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-07-02 21:18:58 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-07-02 21:18:58 (GMT)
commit42e913aa3a6f777a8d40eb1d020e77906d0b1ba4 (patch)
tree1de0b065591fa0143f6709dc93a723bddd7babf8 /Modules
parente31db2a8214e338be8873a92f7c40c94a56c7078 (diff)
parent80f78a3efcd0836c4495a833fc24ef20d9ba19b2 (diff)
downloadcpython-42e913aa3a6f777a8d40eb1d020e77906d0b1ba4.zip
cpython-42e913aa3a6f777a8d40eb1d020e77906d0b1ba4.tar.gz
cpython-42e913aa3a6f777a8d40eb1d020e77906d0b1ba4.tar.bz2
merge 3.4 (#24552)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_pickle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 2d66f00..44f840d 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -5279,10 +5279,10 @@ load_newobj_ex(UnpicklerObject *self)
if (!PyType_Check(cls)) {
Py_DECREF(kwargs);
Py_DECREF(args);
- Py_DECREF(cls);
PyErr_Format(st->UnpicklingError,
"NEWOBJ_EX class argument must be a type, not %.200s",
Py_TYPE(cls)->tp_name);
+ Py_DECREF(cls);
return -1;
}