mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Issue #25761: Fixed reference leak added in previous changeset (5c670af0100f).
This commit is contained in:
parent
ef3a67682b
commit
3ac5380d24
1 changed files with 1 additions and 0 deletions
|
@ -5152,6 +5152,7 @@ load_dict(UnpicklerObject *self)
|
||||||
if ((j - i) % 2 != 0) {
|
if ((j - i) % 2 != 0) {
|
||||||
PickleState *st = _Pickle_GetGlobalState();
|
PickleState *st = _Pickle_GetGlobalState();
|
||||||
PyErr_SetString(st->UnpicklingError, "odd number of items for DICT");
|
PyErr_SetString(st->UnpicklingError, "odd number of items for DICT");
|
||||||
|
Py_DECREF(dict);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue