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:
parent
49dec1cac6
commit
c0d4100517
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user