python/dist/src/Modules posixmodule.c, 2.300.8.1, 2.300.8.2
Update of /cvsroot/python/python/dist/src/Modules In directory sc8-pr-cvs1:/tmp/cvs-serv17088 Modified Files: Tag: release23-maint posixmodule.c Log Message: SF patch #798534: Windows os.popen needlessly gets a reference to tuple () (Contributed by Andrew Gaul.) Fixes a minor leak. Index: posixmodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v retrieving revision 2.300.8.1 retrieving revision 2.300.8.2 diff -C2 -d -r2.300.8.1 -r2.300.8.2 *** posixmodule.c 6 Aug 2003 02:47:56 -0000 2.300.8.1 --- posixmodule.c 1 Sep 2003 22:32:39 -0000 2.300.8.2 *************** *** 3616,3620 **** posix_popen(PyObject *self, PyObject *args) { ! PyObject *f, *s; int tm = 0; --- 3616,3620 ---- posix_popen(PyObject *self, PyObject *args) { ! PyObject *f; int tm = 0; *************** *** 3624,3629 **** if (!PyArg_ParseTuple(args, "s|si:popen", &cmdstring, &mode, &bufsize)) return NULL; - - s = PyTuple_New(0); if (*mode == 'r') --- 3624,3627 ----
participants (1)
-
rhettingerīŧ users.sourceforge.net