diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-09-25 15:13:09 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-09-28 10:24:04 +1000 |
commit | c82a816f4b8e375f8a93fa81194a47b327747c7f (patch) | |
tree | 30e2157414aacb0a6f478def263b64a26710309d /source4/dsdb/samdb/ldb_modules | |
parent | 12936bee690e5be8d34f7da288a8620d8b50c676 (diff) | |
download | samba-c82a816f4b8e375f8a93fa81194a47b327747c7f.tar.gz samba-c82a816f4b8e375f8a93fa81194a47b327747c7f.tar.bz2 samba-c82a816f4b8e375f8a93fa81194a47b327747c7f.zip |
s4-repl: free the la list on prepare commit failure
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 3 |
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; } } |