From: Douglas Bagnall Date: Wed, 24 Apr 2019 09:30:07 +0000 (+1200) Subject: s4/dsdb/replmd: replicated_handle_rename free temp_ctx X-Git-Tag: tdb-1.4.2~490 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7a6c70953daa84b88004e791e67b9a45f086946;p=thirdparty%2Fsamba.git s4/dsdb/replmd: replicated_handle_rename free temp_ctx Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 1d800feb0c1..56486f1ef20 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -5970,6 +5970,7 @@ static int replmd_replicated_handle_rename(struct replmd_replicated_request *ar, "Failed to form conflict DN for %s\n", ldb_dn_get_linearized(msg->dn)); + talloc_free(tmp_ctx); return replmd_replicated_request_werror(ar, WERR_NOT_ENOUGH_MEMORY); } @@ -5982,11 +5983,13 @@ static int replmd_replicated_handle_rename(struct replmd_replicated_request *ar, ldb_dn_get_linearized(ar->search_msg->dn), ldb_dn_get_linearized(new_dn), ldb_errstring(ldb_module_get_ctx(ar->module))); + talloc_free(tmp_ctx); return replmd_replicated_request_werror(ar, WERR_DS_DRA_DB_ERROR); } msg->dn = new_dn; *renamed = true; + talloc_free(tmp_ctx); return LDB_SUCCESS; }