1
0
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:
Douglas Bagnall 2023-10-25 13:18:34 +13:00 committed by Andrew Bartlett
parent 1d8024e733
commit cbf8349ec5

View File

@ -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;
}