mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s4-repl: free the la list on prepare commit failure
This commit is contained in:
parent
12936bee69
commit
c82a816f4b
@ -2316,6 +2316,9 @@ static int replmd_prepare_commit(struct ldb_module *module)
|
||||
DLIST_REMOVE(replmd_private->la_list, la);
|
||||
ret = replmd_process_linked_attribute(module, la);
|
||||
if (ret != LDB_SUCCESS) {
|
||||
talloc_free(replmd_private->la_ctx);
|
||||
replmd_private->la_list = NULL;
|
||||
replmd_private->la_ctx = NULL;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user