summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-29 09:46:51 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-29 09:46:51 (GMT)
commitc7c51147c73984137410ec03026b77e4a76ab61e (patch)
tree4c8203e93ac28b622e4329451077c7128dd10be0 /Objects
parent964f5978dc86bd4b28a750bd93caefe18c292f4a (diff)
downloadcpython-c7c51147c73984137410ec03026b77e4a76ab61e.zip
cpython-c7c51147c73984137410ec03026b77e4a76ab61e.tar.gz
cpython-c7c51147c73984137410ec03026b77e4a76ab61e.tar.bz2
Fix refleak in socketmodule. Replace bogus Py_BuildValue calls.
Fix refleak in exceptions.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/exceptions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index 2ac45fb..44c8fd6 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -246,6 +246,7 @@ BaseException_set_args(PyBaseExceptionObject *self, PyObject *val)
}
seq = PySequence_Tuple(val);
if (!seq) return -1;
+ Py_CLEAR(self->args);
self->args = seq;
return 0;
}