1
0
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:
Jim McDonough 2006-03-10 14:09:34 +00:00 committed by Gerald (Jerry) Carter
parent 7ec2b31a87
commit 6ff849f35a

View File

@ -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;
}