1
0
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:
Andrew Tridgell 2009-09-25 15:13:09 -07:00
parent 12936bee69
commit c82a816f4b

View File

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