From 20299e5bf5245166308d2fe1feaaa204c03c0472 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 28 Oct 2005 09:15:27 +0000 Subject: r11368: Remove a memleak that just cost me half an hour: If we terminate inside a message handler, the list of messages from retrieve_all_messages is not properly freed. Not important, just confusing :-) Volker (This used to be commit d20388750dcfe7e0680246f7e3e6beb3a6d51a4a) --- source3/nsswitch/winbindd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index 56e0f16bcb..a62fd32b20 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -213,7 +213,7 @@ static void msg_reload_services(int msg_type, struct process_id src, void *buf, /* React on 'smbcontrol winbindd shutdown' in the same way as on SIGTERM*/ static void msg_shutdown(int msg_type, struct process_id src, void *buf, size_t len) { - terminate(); + do_sigterm = True; } static struct winbindd_dispatch_table { -- cgit