r51669 - python/trunk/Objects/fileobject.c
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)
participants (1)
-
brett.cannon