Backport 51669: Make sure memory is properly cleaned up in file_init (even though this should not be able to happen since we already parsed the args)

This commit is contained in:
Neal Norwitz 2006-09-05 04:32:06 +00:00
parent 3b3aae013b
commit fe50f8e961
1 changed files with 1 additions and 1 deletions

View File

@ -2016,7 +2016,7 @@ file_init(PyObject *self, PyObject *args, PyObject *kwds)
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)