possible memory leak in error case (closes #24719)
Patch by Pankaj Sharma.
This commit is contained in:
parent
455a2a30a3
commit
7f18ac4a59
|
@ -2910,7 +2910,7 @@ Pickle_getvalue(Picklerobject *self, PyObject *args)
|
|||
if (ik >= lm || ik == 0) {
|
||||
PyErr_SetString(PicklingError,
|
||||
"Invalid get data");
|
||||
return NULL;
|
||||
goto err;
|
||||
}
|
||||
have_get[ik] = 1;
|
||||
rsize += ik < 256 ? 2 : 5;
|
||||
|
|
Loading…
Reference in New Issue