The Samba-Bugzilla – Attachment 5975 Details for
Bug 7587
talloc_autofree_context() in shared libraries and plugins is a bad idea on FreeBSD
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.4 and 3.5
0001-s3-Fix-bug-7587.patch (text/plain), 953 bytes, created by
Volker Lendecke
on 2010-09-22 16:09:12 UTC
(
hide
)
Description:
Patch for 3.4 and 3.5
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2010-09-22 16:09:12 UTC
Size:
953 bytes
patch
obsolete
>From 6c065c5c30bad0600b944ae33483515b42e69f46 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Wed, 22 Sep 2010 14:14:58 +0200 >Subject: [PATCH] s3: Fix bug 7587 > >atexit() can not be called from a .so. > >Some extensive discussions proved that talloc_autofree_context() >is considered a hack that needs to go. This is the >"minimum necessary change" (hint, hint ;-)) to fix this bug >and not break much.... >--- > lib/talloc/talloc.c | 1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > >diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c >index f7b1ac3..39666b9 100644 >--- a/lib/talloc/talloc.c >+++ b/lib/talloc/talloc.c >@@ -1902,7 +1902,6 @@ void *talloc_autofree_context(void) > if (autofree_context == NULL) { > autofree_context = _talloc_named_const(NULL, 0, "autofree_context"); > talloc_set_destructor(autofree_context, talloc_autofree_destructor); >- atexit(talloc_autofree); > } > return autofree_context; > } >-- >1.7.1.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 7587
: 5975