[Python-checkins] cpython: Issue #25761: Fixed reference leak added in previous changeset (5c670af0100f).
serhiy.storchaka
python-checkins at python.org
Mon Dec 7 04:32:38 EST 2015
https://hg.python.org/cpython/rev/001514146c21
changeset: 99500:001514146c21
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Dec 07 11:32:00 2015 +0200
summary:
Issue #25761: Fixed reference leak added in previous changeset (5c670af0100f).
files:
Modules/_pickle.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -5152,6 +5152,7 @@
if ((j - i) % 2 != 0) {
PickleState *st = _Pickle_GetGlobalState();
PyErr_SetString(st->UnpicklingError, "odd number of items for DICT");
+ Py_DECREF(dict);
return -1;
}
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list