summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-07 09:32:00 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-07 09:32:00 (GMT)
commit3ac5380d249ea572ae9f73c7ab65180c2c06a8d4 (patch)
treeab0291c38b44af402fbbc61d013496251d76d5f9 /Modules/_pickle.c
parentef3a67682bc11387b82237d95501468061c09c9d (diff)
downloadcpython-3ac5380d249ea572ae9f73c7ab65180c2c06a8d4.zip
cpython-3ac5380d249ea572ae9f73c7ab65180c2c06a8d4.tar.gz
cpython-3ac5380d249ea572ae9f73c7ab65180c2c06a8d4.tar.bz2
Issue #25761: Fixed reference leak added in previous changeset (5c670af0100f).
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 38598c5..b3d9b91 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -5152,6 +5152,7 @@ load_dict(UnpicklerObject *self)
if ((j - i) % 2 != 0) {
PickleState *st = _Pickle_GetGlobalState();
PyErr_SetString(st->UnpicklingError, "odd number of items for DICT");
+ Py_DECREF(dict);
return -1;
}