diff options
author | Brett Cannon <bcannon@gmail.com> | 2006-08-31 18:54:26 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2006-08-31 18:54:26 (GMT) |
commit | 2b3666f73781b7c3207c5babda6edadaf85b8b30 (patch) | |
tree | a1eddd522524c6d4eea151a3875adc69af496e78 /Objects/fileobject.c | |
parent | db38588a2549035e0e4bd7b7a3627ab48addb2bd (diff) | |
download | cpython-2b3666f73781b7c3207c5babda6edadaf85b8b30.zip cpython-2b3666f73781b7c3207c5babda6edadaf85b8b30.tar.gz cpython-2b3666f73781b7c3207c5babda6edadaf85b8b30.tar.bz2 |
Make sure memory is properly cleaned up in file_init.
Backport candidate.
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r-- | Objects/fileobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index 5249f1c..b43bf85 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -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) |