PyUnicode_Resize() doesn't free its argument in case of a failure,

so we can jump to the error handling code that does.
(Spotted by Neal Norwitz)
This commit is contained in:
Walter Dörwald 2003-02-04 16:57:49 +00:00
parent 903f1e0c40
commit 531e000d2e
1 changed files with 1 additions and 1 deletions

View File

@ -2028,7 +2028,7 @@ filterunicode(PyObject *func, PyObject *strobj)
need = 2*outlen;
if (PyUnicode_Resize(&result, need)) {
Py_DECREF(item);
return NULL;
goto Fail_1;
}
outlen = need;
}