Issue #25761: Fixed reference leak added in previous changeset (5c670af0100f).

This commit is contained in:
Serhiy Storchaka 2015-12-07 11:32:00 +02:00
parent ef3a67682b
commit 3ac5380d24
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}