1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

Merge of memory leak fixes from APPLIANCE_TNG.

(This used to be commit b198de92d2)
This commit is contained in:
Tim Potter 2001-12-10 06:21:18 +00:00
parent 8c31fd48c8
commit 31f036b5b3

View File

@ -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) {