diff options
author | Georg Brandl <georg@python.org> | 2006-05-29 09:46:51 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-05-29 09:46:51 (GMT) |
commit | c7c51147c73984137410ec03026b77e4a76ab61e (patch) | |
tree | 4c8203e93ac28b622e4329451077c7128dd10be0 /Objects | |
parent | 964f5978dc86bd4b28a750bd93caefe18c292f4a (diff) | |
download | cpython-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.c | 1 |
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; } |