diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-07-02 21:18:38 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-07-02 21:18:38 (GMT) |
commit | 80f78a3efcd0836c4495a833fc24ef20d9ba19b2 (patch) | |
tree | 71d3f2437304704a76040c7c0d0490b804abbfe7 /Modules | |
parent | b7a688b3a40705ab4f7f7035d40ec026899c7052 (diff) | |
download | cpython-80f78a3efcd0836c4495a833fc24ef20d9ba19b2.zip cpython-80f78a3efcd0836c4495a833fc24ef20d9ba19b2.tar.gz cpython-80f78a3efcd0836c4495a833fc24ef20d9ba19b2.tar.bz2 |
fix use after free (closes #24552)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_pickle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 19a1c88..9f16b4d 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -5210,10 +5210,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; } |