- Bug #1365916: Fix an int/long mismatch in the sorted() built-in.
- Fix memory leak of coding spec in Parser/tokenizer.c.
+
+- Fix memory leak in file_init.
- Overflow checking code in integer division ran afoul of new gcc
optimizations. Changed to be more standard-conforming.
- Patch #1488312, Fix memory alignment problem on SPARC in unicode
-- Fixed a few bugs on cjkcodecs:
+- Fixed a few bugs in cjkcodecs:
- gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly.
- iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312
codepoints to conform the standard.
/* We parse again to get the name as a PyObject */
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|si:file", kwlist,
&o_name, &mode, &bufsize))
- return -1;
+ goto Error;
if (fill_file_fields(foself, NULL, o_name, mode,
fclose) == NULL)