diff options
author | Volker Lendecke <vl@samba.org> | 2010-09-25 16:02:04 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-09-26 03:29:28 +0200 |
commit | 997a64f6fb11e19d78c0468d86c0c545a4e586d1 (patch) | |
tree | b827fe006217788a134ba05dff4563ce12518b3d | |
parent | 34c0b166b6abd1d52e4c07a798f41a245d39a426 (diff) | |
download | samba-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.c | 4 |
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; } |