Commit fe50f8e9 authored by Neal Norwitz's avatar Neal Norwitz

Backport 51669: Make sure memory is properly cleaned up in file_init (even...

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)
parent 3b3aae01
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment