Fix memory leaks spotted by Klocwork #37.

This commit is contained in:
Neal Norwitz 2006-07-23 07:57:11 +00:00
parent 93f2ca1f85
commit 98a96004f9
1 changed files with 2 additions and 2 deletions

View File

@ -2637,7 +2637,7 @@ Pickle_getvalue(Picklerobject *self, PyObject *args)
if (ik >= lm || ik == 0) {
PyErr_SetString(PicklingError,
"Invalid get data");
return NULL;
goto err;
}
if (have_get[ik]) /* with matching get */
rsize += ik < 256 ? 2 : 5;
@ -2649,7 +2649,7 @@ Pickle_getvalue(Picklerobject *self, PyObject *args)
) {
PyErr_SetString(PicklingError,
"Unexpected data in internal list");
return NULL;
goto err;
}
else { /* put */