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