diff Modules/_fileio.c @ 48859:de954dd6797b legacy-trunk

#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
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 24 Aug 2008 22:03:05 +0000
parents b1682c693b9a
children 7b39501b0a76
line wrap: on
line diff
--- a/Modules/_fileio.c	Sun Aug 24 21:55:03 2008 +0000
+++ b/Modules/_fileio.c	Sun Aug 24 22:03:05 2008 +0000
@@ -175,7 +175,7 @@
 						 kwlist,
 						 Py_FileSystemDefaultEncoding,
 						 &name, &mode, &closefd))
-			goto error;
+			return -1;
 	    }
 	}