mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
Merge of memory leak fixes from APPLIANCE_TNG.
(This used to be commit b198de92d2
)
This commit is contained in:
parent
8c31fd48c8
commit
31f036b5b3
@ -753,6 +753,8 @@ enum winbindd_result winbindd_list_groups(struct winbindd_cli_state *state)
|
|||||||
sizeof(struct acct_info) *
|
sizeof(struct acct_info) *
|
||||||
groups.num_sam_entries);
|
groups.num_sam_entries);
|
||||||
|
|
||||||
|
free(groups.sam_entries);
|
||||||
|
|
||||||
groups.sam_entries = NULL;
|
groups.sam_entries = NULL;
|
||||||
groups.num_sam_entries = 0;
|
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 */
|
/* Assign extra_data fields in response structure */
|
||||||
|
|
||||||
if (extra_data) {
|
if (extra_data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user