From 6c065c5c30bad0600b944ae33483515b42e69f46 Mon Sep 17 00:00:00 2001 From: Volker Lendecke 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