mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
lib/ldb: pyldb search iterator avoids exception leak
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
1d8024e733
commit
cbf8349ec5
@ -3017,6 +3017,7 @@ static PyObject *py_ldb_search_iterator_result(PyLdbSearchIteratorObject *self,
|
||||
|
||||
if (self->state.exception != NULL) {
|
||||
PyErr_SetObject(PyExc_LdbError, self->state.exception);
|
||||
Py_DECREF(self->state.exception);
|
||||
self->state.exception = NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user