git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
414cd91
)
s3: Remove talloc_autofree_context() from dmapi.c
author
Volker Lendecke
<vl@samba.org>
Sat, 2 Oct 2010 21:49:06 +0000
(23:49 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 3 Oct 2010 08:45:57 +0000
(10:45 +0200)
This is a place where an explicit dmapi_destroy_session would be needed. But we
don't use a destructor for this.
source3/smbd/dmapi.c
patch
|
blob
|
history
diff --git
a/source3/smbd/dmapi.c
b/source3/smbd/dmapi.c
index 8c3939f99aaa8d13ae78c27c269fdcfba7d6e068..e213d73e0aa11897f511eac033fd62ee91f5814c 100644
(file)
--- a/
source3/smbd/dmapi.c
+++ b/
source3/smbd/dmapi.c
@@
-188,8
+188,7
@@
const void *dmapi_get_current_session(void)
bool dmapi_have_session(void)
{
if (!dmapi_ctx) {
- dmapi_ctx = talloc(talloc_autofree_context(),
- struct smbd_dmapi_context);
+ dmapi_ctx = talloc(struct smbd_dmapi_context);
if (!dmapi_ctx) {
exit_server("unable to allocate smbd_dmapi_context");
}