summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_group.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-12-13 16:39:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:27 -0500
commit25fe484101a589d6d15df21456060888aaaa149a (patch)
tree76cc054fe51f5b2794461c8dfdc989d7943a12b9 /source3/nsswitch/winbindd_group.c
parent050534827f7dcbc9cd78683e477aaa6dd2ba9394 (diff)
downloadsamba-25fe484101a589d6d15df21456060888aaaa149a.tar.gz
samba-25fe484101a589d6d15df21456060888aaaa149a.tar.bz2
samba-25fe484101a589d6d15df21456060888aaaa149a.zip
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)
Diffstat (limited to 'source3/nsswitch/winbindd_group.c')
-rw-r--r--source3/nsswitch/winbindd_group.c4
1 files changed, 2 insertions, 2 deletions
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;