mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
secacl: Fix a memleak in an error path
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
b6e323bcf6
commit
4ec65713fe
@ -57,6 +57,7 @@ struct security_acl *make_sec_acl(TALLOC_CTX *ctx,
|
||||
if ((num_aces) &&
|
||||
((dst->aces = talloc_array(dst, struct security_ace, num_aces))
|
||||
== NULL)) {
|
||||
TALLOC_FREE(dst);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user