summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-10 22:16:39 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-10 22:16:39 (GMT)
commit1109fbca76d08bb2f11f2899580d2ab7dbe796fa (patch)
treed52f999b597674ea5648059207a1eccaf173e141 /Objects/fileobject.c
parentbb3649e2ba386adc16fadc2e0d1f2606c047e6aa (diff)
downloadcpython-1109fbca76d08bb2f11f2899580d2ab7dbe796fa.zip
cpython-1109fbca76d08bb2f11f2899580d2ab7dbe796fa.tar.gz
cpython-1109fbca76d08bb2f11f2899580d2ab7dbe796fa.tar.bz2
Make new gcc -Wall happy
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r--Objects/fileobject.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 51752abc..49517c5 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -190,10 +190,12 @@ file_dealloc(f)
(*f->f_close)(f->f_fp);
Py_END_ALLOW_THREADS
}
- if (f->f_name != NULL)
+ if (f->f_name != NULL) {
Py_DECREF(f->f_name);
- if (f->f_mode != NULL)
+ }
+ if (f->f_mode != NULL) {
Py_DECREF(f->f_mode);
+ }
free((char *)f);
}
@@ -771,8 +773,9 @@ file_readlines(f, args)
goto error;
}
cleanup:
- if (big_buffer)
+ if (big_buffer) {
Py_DECREF(big_buffer);
+ }
return list;
}