summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2019-04-24 21:30:07 +1200
committerAndrew Bartlett <abartlet@samba.org>2019-07-24 09:35:24 +0000
commite7a6c70953daa84b88004e791e67b9a45f086946 (patch)
tree8f0413322197f014eb49ff2432eff529478fac7d /source4/dsdb
parent4db886db066c53386aaa16a415c081bd50193af9 (diff)
downloadsamba-e7a6c70953daa84b88004e791e67b9a45f086946.tar.gz
s4/dsdb/replmd: replicated_handle_rename free temp_ctx
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb')
-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 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;
}