[Python-checkins] r68577 - sandbox/trunk/io-c/_iobase.c
antoine.pitrou
python-checkins at python.org
Tue Jan 13 19:30:33 CET 2009
Author: antoine.pitrou
Date: Tue Jan 13 19:30:33 2009
New Revision: 68577
Log:
Silence some gcc warnings.
Modified:
sandbox/trunk/io-c/_iobase.c
Modified: sandbox/trunk/io-c/_iobase.c
==============================================================================
--- sandbox/trunk/io-c/_iobase.c (original)
+++ sandbox/trunk/io-c/_iobase.c Tue Jan 13 19:30:33 2009
@@ -214,8 +214,9 @@
Py_CLEAR(res);
PyErr_SetString(PyExc_IOError, "File or stream is not seekable.");
}
- if (args == Py_True)
+ if (args == Py_True) {
Py_DECREF(res);
+ }
return res;
}
@@ -241,8 +242,9 @@
Py_CLEAR(res);
PyErr_SetString(PyExc_IOError, "File or stream is not readable.");
}
- if (args == Py_True)
+ if (args == Py_True) {
Py_DECREF(res);
+ }
return res;
}
@@ -268,8 +270,9 @@
Py_CLEAR(res);
PyErr_SetString(PyExc_IOError, "File or stream is not writable.");
}
- if (args == Py_True)
+ if (args == Py_True) {
Py_DECREF(res);
+ }
return res;
}
More information about the Python-checkins
mailing list