-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Description
attrs_from_List() has a reference leak in its error path. Py_BuildValue("sO", "expected string in list", item) returns a new reference. PyErr_SetObject() does not steal a reference. Instead it increments the reference count of the object again. The original reference is leaked.
python-ldap/Modules/LDAPObject.c
Lines 302 to 303 in 4c9c526
| PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", | |
| "expected string in list", item)); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels