mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r14150: Fix coverity #118: not freeing alloc'ed storage returned from
sstring_sub().
This commit is contained in:
parent
7ec2b31a87
commit
6ff849f35a
@ -1309,7 +1309,9 @@ static NTSTATUS populate_ldap_for_ldif(fstring sid, const char *suffix, const ch
|
||||
fflush(add_fd);
|
||||
|
||||
/* Deallocate memory, and return */
|
||||
if (suffix_attr != NULL) SAFE_FREE(suffix_attr);
|
||||
SAFE_FREE(suffix_attr);
|
||||
SAFE_FREE(user_attr);
|
||||
SAFE_FREE(group_attr);
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user