summaryrefslogtreecommitdiff
path: root/Modules/cStringIO.c
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2006-03-07 15:39:21 +0000
committerHye-Shik Chang <hyeshik@gmail.com>2006-03-07 15:39:21 +0000
commit4af5c8cee4885df70884a58e2e74c48984bbe7c2 (patch)
treef4c33e559962940576f84b61f760a1b27a3b8618 /Modules/cStringIO.c
parentef1701f7d3a57427c1289bef32227a7aaac7905a (diff)
downloadcpython-git-4af5c8cee4885df70884a58e2e74c48984bbe7c2.tar.gz
SF #1444030: Fix several potential defects found by Coverity.
(reviewed by Neal Norwitz)
Diffstat (limited to 'Modules/cStringIO.c')
-rw-r--r--Modules/cStringIO.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c
index 14e35f366e..fd28aa9324 100644
--- a/Modules/cStringIO.c
+++ b/Modules/cStringIO.c
@@ -544,6 +544,7 @@ newOobject(int size) {
if (!self->buf) {
PyErr_SetString(PyExc_MemoryError,"out of memory");
self->buf_size = 0;
+ Py_DECREF(self);
return NULL;
}