mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Fix refleak in socketmodule. Replace bogus Py_BuildValue calls.
Fix refleak in exceptions.
This commit is contained in:
parent
964f5978dc
commit
c7c51147c7
2 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue