summaryrefslogtreecommitdiff
path: root/lib/dbwrap
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-09-21 12:32:47 +0200
committerRalph Böhme <slow@samba.org>2015-09-22 04:51:16 +0200
commit71a407edad9f3fc1cd1719d87123862698f12f2f (patch)
tree35e561faa52490bbb42e3ff9fafec3b680507de2 /lib/dbwrap
parent225cba6e413758dcaff2ba275fa81b37485922f2 (diff)
downloadsamba-71a407edad9f3fc1cd1719d87123862698f12f2f.tar.gz
dbwrap: Remove talloc_reference()
We want to know (by crashing) when we free the database with records still around. This would be a serious violation of our data structure hierarchies. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'lib/dbwrap')
-rw-r--r--lib/dbwrap/dbwrap_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dbwrap/dbwrap_tdb.c b/lib/dbwrap/dbwrap_tdb.c
index 3e757ff6ad1..a144ed47bb6 100644
--- a/lib/dbwrap/dbwrap_tdb.c
+++ b/lib/dbwrap/dbwrap_tdb.c
@@ -136,7 +136,7 @@ static struct db_record *db_tdb_fetch_locked_internal(
talloc_set_destructor(state.result, db_tdb_record_destr);
- state.result->private_data = talloc_reference(state.result, ctx);
+ state.result->private_data = ctx;
state.result->store = db_tdb_store;
state.result->delete_rec = db_tdb_delete;