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

r14153: Fix coverity #116: free storage alloc'ed by sstring_sub()

This commit is contained in:
Jim McDonough 2006-03-10 14:17:44 +00:00 committed by Gerald (Jerry) Carter
parent cf36f5949f
commit dbc0ff5544

View File

@ -1412,6 +1412,7 @@ static NTSTATUS fetch_group_info_to_ldif(SAM_DELTA_CTR *delta, GROUPMAP *groupma
strcmp(groupname, "Print Operators") == 0 ||
strcmp(groupname, "Backup Operators") == 0 ||
strcmp(groupname, "Replicators") == 0) {
SAFE_FREE(group_attr);
return NT_STATUS_OK;
} else {
/* Increment the gid for the new group */
@ -1441,6 +1442,7 @@ static NTSTATUS fetch_group_info_to_ldif(SAM_DELTA_CTR *delta, GROUPMAP *groupma
fprintf(add_fd, "\n");
fflush(add_fd);
SAFE_FREE(group_attr);
/* Return */
return NT_STATUS_OK;
}