diff options
author | Tim Potter <tpot@samba.org> | 2001-12-10 06:21:18 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-12-10 06:21:18 +0000 |
commit | b198de92d2149ba2f5010c76e715d274b8f29c2a (patch) | |
tree | 5c235650adaca945a13b5d067929811e91e9b50c | |
parent | a228c7efcc06b901ca51a6da77f8a52b77912f55 (diff) | |
download | samba-b198de92d2149ba2f5010c76e715d274b8f29c2a.tar.gz |
Merge of memory leak fixes from APPLIANCE_TNG.
-rw-r--r-- | source/nsswitch/winbindd_group.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd_group.c b/source/nsswitch/winbindd_group.c index e7b4541db02..abbd960e9dc 100644 --- a/source/nsswitch/winbindd_group.c +++ b/source/nsswitch/winbindd_group.c @@ -753,6 +753,8 @@ enum winbindd_result winbindd_list_groups(struct winbindd_cli_state *state) sizeof(struct acct_info) * groups.num_sam_entries); + free(groups.sam_entries); + groups.sam_entries = NULL; groups.num_sam_entries = 0; } @@ -809,6 +811,11 @@ enum winbindd_result winbindd_list_groups(struct winbindd_cli_state *state) } } + /* Free group data */ + + if (groups.sam_entries) + free(groups.sam_entries); + /* Assign extra_data fields in response structure */ if (extra_data) { |