From 25fe484101a589d6d15df21456060888aaaa149a Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 13 Dec 2006 16:39:50 +0000 Subject: r20150: better memory handling for some functions, make sure we don't leak memory by using the wrong(long lived) mem context (This used to be commit a28cdd6e742cb72a728bd337546ee95fd4160ed8) --- source3/nsswitch/winbindd_group.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/nsswitch/winbindd_group.c') diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index 18a7be29de..612147043e 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/nsswitch/winbindd_group.c @@ -442,8 +442,8 @@ static void getgrgid_got_sid(struct winbindd_cli_state *state, DOM_SID group_sid { struct winbindd_domain *domain; enum lsa_SidType name_type; - char *dom_name = NULL; - char *group_name = NULL; + char *dom_name; + char *group_name; size_t gr_mem_len; size_t num_gr_mem; char *gr_mem; -- cgit