[issue3662] _fileio._FileIO segfaults
Amaury Forgeot d'Arc
report at bugs.python.org
Sun Aug 24 23:16:28 CEST 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
The "goto error" is not necessary here. Nothing has been allocated at
this point, and "return -1" is enough.
Index: Modules/_fileio.c
===================================================================
--- Modules/_fileio.c (revision 65957)
+++ Modules/_fileio.c (working copy)
@@ -175,7 +175,7 @@
kwlist,
Py_FileSystemDefaultEncoding,
&name, &mode, &closefd))
- goto error;
+ return -1;
}
}
----------
keywords: +needs review
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3662>
_______________________________________
More information about the Python-bugs-list
mailing list