mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
pyldb: Free correct context when pyldb_Object_AsDn() fails
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-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
2b1cd4a114
commit
e7bdd30be5
@ -1808,7 +1808,7 @@ static PyObject *py_ldb_search(PyLdbObject *self, PyObject *args, PyObject *kwar
|
||||
base = ldb_get_default_basedn(ldb_ctx);
|
||||
} else {
|
||||
if (!pyldb_Object_AsDn(ldb_ctx, py_base, ldb_ctx, &base)) {
|
||||
talloc_free(attrs);
|
||||
talloc_free(mem_ctx);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user