summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-25 15:13:09 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-28 10:24:04 +1000
commitc82a816f4b8e375f8a93fa81194a47b327747c7f (patch)
tree30e2157414aacb0a6f478def263b64a26710309d
parent12936bee690e5be8d34f7da288a8620d8b50c676 (diff)
downloadsamba-c82a816f4b8e375f8a93fa81194a47b327747c7f.tar.gz
samba-c82a816f4b8e375f8a93fa81194a47b327747c7f.tar.bz2
samba-c82a816f4b8e375f8a93fa81194a47b327747c7f.zip
s4-repl: free the la list on prepare commit failure
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index c83fb0f01b..df5ae1a1c6 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -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;
}
}