Commit ae31085e authored by Neal Norwitz's avatar Neal Norwitz

Fix memory leaks spotted by Klocwork #37.

parent 7c443a75
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment