git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34c0b16
)
s3: Remove talloc_autofree_context() from serverid_db()
author
Volker Lendecke
<vl@samba.org>
Sat, 25 Sep 2010 23:02:04 +0000
(16:02 -0700)
committer
Volker Lendecke
<vl@samba.org>
Sun, 26 Sep 2010 01:29:28 +0000
(
03:29
+0200)
If we needed an explicit tdb_close() in the destructor, we'd be hosed
long ago.
source3/lib/serverid.c
patch
|
blob
|
history
diff --git
a/source3/lib/serverid.c
b/source3/lib/serverid.c
index 3c86701596bbac287d93082383c2cd5693fa25e5..f0c61aeb82a030383f4d06414003a962321ace24 100644
(file)
--- 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;
}