#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
This commit is contained in:
Neal Norwitz 2008-08-24 22:03:05 +00:00
parent dcf4891210
commit 901e4715bd
2 changed files with 5 additions and 1 deletions

View file

@ -175,7 +175,7 @@ fileio_init(PyObject *oself, PyObject *args, PyObject *kwds)
kwlist,
Py_FileSystemDefaultEncoding,
&name, &mode, &closefd))
goto error;
return -1;
}
}