summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-09-25 16:02:04 -0700
committerVolker Lendecke <vl@samba.org>2010-09-26 03:29:28 +0200
commit997a64f6fb11e19d78c0468d86c0c545a4e586d1 (patch)
treeb827fe006217788a134ba05dff4563ce12518b3d
parent34c0b166b6abd1d52e4c07a798f41a245d39a426 (diff)
downloadsamba-997a64f6fb11e19d78c0468d86c0c545a4e586d1.tar.gz
samba-997a64f6fb11e19d78c0468d86c0c545a4e586d1.tar.bz2
samba-997a64f6fb11e19d78c0468d86c0c545a4e586d1.zip
s3: Remove talloc_autofree_context() from serverid_db()
If we needed an explicit tdb_close() in the destructor, we'd be hosed long ago.
-rw-r--r--source3/lib/serverid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c
index 3c86701596..f0c61aeb82 100644
--- a/source3/lib/serverid.c
+++ b/source3/lib/serverid.c
@@ -61,8 +61,8 @@ static struct db_context *serverid_db(void)
if (db != NULL) {
return db;
}
- db = db_open(talloc_autofree_context(), lock_path("serverid.tdb"),
- 0, TDB_DEFAULT|TDB_CLEAR_IF_FIRST, O_RDWR|O_CREAT, 0644);
+ db = db_open(NULL, lock_path("serverid.tdb"), 0,
+ TDB_DEFAULT|TDB_CLEAR_IF_FIRST, O_RDWR|O_CREAT, 0644);
return db;
}