commit | 531e000d2e6c15b7a83018d8c663770c012ee98e | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Tue Feb 04 16:57:49 2003 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Tue Feb 04 16:57:49 2003 +0000 |
tree | 3d0d06ef0b442565b5e18de77ce1a71408d4af2f | |
parent | 903f1e0c40cd25489cdf8856ccb1bb8932c819f8 [diff] [blame] |
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)
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index c273012..2383b4f 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -2028,7 +2028,7 @@ need = 2*outlen; if (PyUnicode_Resize(&result, need)) { Py_DECREF(item); - return NULL; + goto Fail_1; } outlen = need; }