[Python-checkins] python/dist/src/Python bltinmodule.c,2.272,2.273

Neal Norwitz neal@metaslash.com
Tue, 04 Feb 2003 11:51:10 -0500


> ! 			if (PyUnicode_Resize(&result, need)) {
> ! 				Py_DECREF(item);
> ! 				return NULL;
> ! 			}

Instead of returning NULL, should this goto Fail_1?
It appears that _PyString_Resize() will free it's argument (result)
on failure, but PyUnicode_Resize() doesn't.

Neal