[Python-checkins] r51669 - python/trunk/Objects/fileobject.c

brett.cannon python-checkins at python.org
Thu Aug 31 20:54:26 CEST 2006


Author: brett.cannon
Date: Thu Aug 31 20:54:26 2006
New Revision: 51669
Modified:
 python/trunk/Objects/fileobject.c
Log:
Make sure memory is properly cleaned up in file_init.
Backport candidate.
Modified: python/trunk/Objects/fileobject.c
==============================================================================
--- python/trunk/Objects/fileobject.c	(original)
+++ python/trunk/Objects/fileobject.c	Thu Aug 31 20:54:26 2006
@@ -2016,7 +2016,7 @@
 if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|si:file", 
 kwlist, &o_name, &mode, 
 &bufsize))
- return -1;
+ goto Error;
 
 		if (fill_file_fields(foself, NULL, o_name, mode,
 				 fclose) == NULL)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /