possible memory leak in error case (closes #24719)

Patch by Pankaj Sharma.
This commit is contained in:
Benjamin Peterson 2015-07-25 10:20:13 -07:00
parent 455a2a30a3
commit 7f18ac4a59
1 changed files with 1 additions and 1 deletions

View File

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