summaryrefslogtreecommitdiff
path: root/source4/kdc/hdb-samba4.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-05-25 19:54:24 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-05-28 21:59:04 +1000
commite5232bdc69af45f15bc8fd95745276018f5961be (patch)
tree5ea3336032d76a8946e4b7c96a499763a65c287c /source4/kdc/hdb-samba4.c
parentd0e131ee4e3e1f35ebc33d6c1c27d5c9e69b8e87 (diff)
downloadsamba-e5232bdc69af45f15bc8fd95745276018f5961be.tar.gz
samba-e5232bdc69af45f15bc8fd95745276018f5961be.tar.bz2
samba-e5232bdc69af45f15bc8fd95745276018f5961be.zip
s4:kdc Remove special talloc_free of the ldb context
I can see no reason not to just let this go with the talloc tree that created it, and avoid a talloc_free with references. Andrew Bartlett
Diffstat (limited to 'source4/kdc/hdb-samba4.c')
-rw-r--r--source4/kdc/hdb-samba4.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source4/kdc/hdb-samba4.c b/source4/kdc/hdb-samba4.c
index f91eeb4073..6534dbd27a 100644
--- a/source4/kdc/hdb-samba4.c
+++ b/source4/kdc/hdb-samba4.c
@@ -119,16 +119,6 @@ static krb5_error_code hdb_samba4_nextkey(krb5_context context, HDB *db, unsigne
static krb5_error_code hdb_samba4_destroy(krb5_context context, HDB *db)
{
- struct samba_kdc_db_context *kdc_db_ctx;
-
- kdc_db_ctx = talloc_get_type_abort(db->hdb_db,
- struct samba_kdc_db_context);
-
- if (kdc_db_ctx) {
- talloc_free(kdc_db_ctx->samdb);
- kdc_db_ctx->samdb = NULL;
- }
-
talloc_free(db);
return 0;
}