Issue #25761: Fixed reference leak added in previous changeset (5c670af0100f).
This commit is contained in:
parent
ef3a67682b
commit
3ac5380d24
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue