summaryrefslogtreecommitdiffstats
path: root/Modules/_fileio.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-08-24 22:03:05 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-08-24 22:03:05 (GMT)
commit901e4715bd50bd96469c7fea8c9ed22e61ff6028 (patch)
treeceb84aedaa2be351f3776577812f7d92c5befa63 /Modules/_fileio.c
parentdcf48912102e3caa6f00a06ebc0a80867ec795b8 (diff)
downloadcpython-901e4715bd50bd96469c7fea8c9ed22e61ff6028.zip
cpython-901e4715bd50bd96469c7fea8c9ed22e61ff6028.tar.gz
cpython-901e4715bd50bd96469c7fea8c9ed22e61ff6028.tar.bz2
#3662: Fix segfault introduced when fixing memory leaks.
TESTED=./python -E -tt ./Lib/test/regrtest.py test_fileio R (approach from bug)=Amaury and Benjamin
Diffstat (limited to 'Modules/_fileio.c')
-rw-r--r--Modules/_fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_fileio.c b/Modules/_fileio.c
index 6b3a98d..d6f004f 100644
--- a/Modules/_fileio.c
+++ b/Modules/_fileio.c
@@ -175,7 +175,7 @@ fileio_init(PyObject *oself, PyObject *args, PyObject *kwds)
kwlist,
Py_FileSystemDefaultEncoding,
&name, &mode, &closefd))
- goto error;
+ return -1;
}
}