- #232787 -- Modules/timemodule.c, Python/errors.c, Objects/intobject.c
+- posixmodule.c - Add missing prototypes in for SunOS 4.1.4, plug memory leak
+
+- #125891 - posixmodule.c - os.popen2,3 and 4 leaked file objects on Windows.
+
+- #128053 - posixmodule.c - #ifdef for including "tmpfile" in the
+ posix_methods[] array was wrong -- should be HAVE_TMPFILE
+
What's New in Python 2.0?
=========================
extern int rename(const char *, const char *);
extern int pclose(FILE *);
extern int fclose(FILE *);
+extern int fsync(int);
+extern int lstat(const char *, struct stat *);
+extern int symlink(const char *, const char *);
#endif
#ifdef NeXT
CloseHandle(hChildStderrRdDup);
f = Py_BuildValue("OO",p1,p2);
+ Py_XDECREF(p1);
+ Py_XDECREF(p2);
file_count = 2;
break;
}
PyFile_SetBufSize(p2, 0);
PyFile_SetBufSize(p3, 0);
f = Py_BuildValue("OOO",p1,p2,p3);
+ Py_XDECREF(p1);
+ Py_XDECREF(p2);
+ Py_XDECREF(p3);
file_count = 3;
break;
}
#ifdef HAVE_STATVFS
{"statvfs", posix_statvfs, METH_VARARGS, posix_statvfs__doc__},
#endif
-#ifdef HAVE_TMPNAM
+#ifdef HAVE_TMPFILE
{"tmpfile", posix_tmpfile, METH_VARARGS, posix_tmpfile__doc__},
#endif
#ifdef HAVE_TEMPNAM
PyDict_SetItemString(d, "error", PyExc_OSError);
#ifdef HAVE_PUTENV
- posix_putenv_garbage = PyDict_New();
+ if (posix_putenv_garbage == NULL)
+ posix_putenv_garbage = PyDict_New();
#endif
}