mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
pyldb: fix memory leak in py_ldb_search()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
e7bdd30be5
commit
2c2a2540f4
@ -1807,7 +1807,7 @@ static PyObject *py_ldb_search(PyLdbObject *self, PyObject *args, PyObject *kwar
|
||||
if (py_base == Py_None) {
|
||||
base = ldb_get_default_basedn(ldb_ctx);
|
||||
} else {
|
||||
if (!pyldb_Object_AsDn(ldb_ctx, py_base, ldb_ctx, &base)) {
|
||||
if (!pyldb_Object_AsDn(mem_ctx, py_base, ldb_ctx, &base)) {
|
||||
talloc_free(mem_ctx);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user