[Python-Dev] cpython: fixd refleak (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Thu Jun 13 20:59:13 CEST 2013
- Previous message: [Python-Dev] [Python-checkins] cpython: Move test___all__ over to unittest.main() and use ModuleNotFoundError
- Next message: [Python-Dev] cpython: fixd refleak
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 10 Jun 2013 10:47:28 +0200 (CEST) christian.heimes <python-checkins at python.org> wrote:
http://hg.python.org/cpython/rev/6860263c05b3 changeset: 84077:6860263c05b3 user: Christian Heimes <christian at cheimes.de> date: Mon Jun 10 10:47:22 2013 +0200 summary: fixd refleak [...] - return PyBuildValue("(OOOO)", ofileenv, ofile, odirenv, odir); + if ((tup = PyTupleNew(4)) == NULL) { + goto error; + } + PyTupleSETITEM(tup, 0, ofileenv); + PyTupleSETITEM(tup, 1, ofile); + PyTupleSETITEM(tup, 2, odirenv); + PyTupleSETITEM(tup, 3, odir); + return tup;
How about
return Py_BuildValue("NNNN", ofile_env, ofile, odir_env, odir);
?
- Previous message: [Python-Dev] [Python-checkins] cpython: Move test___all__ over to unittest.main() and use ModuleNotFoundError
- Next message: [Python-Dev] cpython: fixd refleak
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]