From 491b9e637d60a3c86761c5dc348fbf0c2218f7ea Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 22 Jun 2006 20:33:42 +0000 Subject: r16475: destroy talloc ctx when we weren't able to collect onlinestatus messages. Guenther (This used to be commit d6b52e818109e6eb5a3df1bbc127c333e819141d) --- source3/nsswitch/winbindd_dual.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c index 4b92d78d79..0cc35277b0 100644 --- a/source3/nsswitch/winbindd_dual.c +++ b/source3/nsswitch/winbindd_dual.c @@ -649,6 +649,10 @@ static void child_msg_onlinestatus(int msg_type, struct process_id src, void *bu } message = collect_onlinestatus(mem_ctx); + if (message == NULL) { + talloc_destroy(mem_ctx); + return; + } message_send_pid(*sender, MSG_WINBIND_ONLINESTATUS, message, strlen(message) + 1, True); -- cgit