1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r14155: Fix coverity #115: free storage alloc'ed by sstring_sub()

(This used to be commit a197b8c5cb)
This commit is contained in:
Jim McDonough 2006-03-10 14:20:09 +00:00 committed by Gerald (Jerry) Carter
parent 49dec1cac6
commit c0d4100517

View File

@ -1636,6 +1636,7 @@ static NTSTATUS fetch_alias_info_to_ldif(SAM_DELTA_CTR *delta, GROUPMAP *groupma
strcmp(aliasname, "Print Operators") == 0 ||
strcmp(aliasname, "Backup Operators") == 0 ||
strcmp(aliasname, "Replicator") == 0) {
SAFE_FREE(group_attr);
return NT_STATUS_OK;
} else {
/* Increment the gid for the new group */
@ -1663,6 +1664,7 @@ static NTSTATUS fetch_alias_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;
}