[Python-checkins] python/dist/src/Modules posixmodule.c, 2.301, 2.302

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Mon Sep 1 16:25:44 EDT 2003


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv15943

Modified Files:
	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.301
retrieving revision 2.302
diff -C2 -d -r2.301 -r2.302
*** posixmodule.c	6 Aug 2003 02:46:58 -0000	2.301
--- posixmodule.c	1 Sep 2003 22:25:41 -0000	2.302
***************
*** 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 ----





More information about the Python-checkins mailing list