summaryrefslogtreecommitdiffstats
path: root/libcli/security
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-12-06 09:28:40 +0000
committerJeremy Allison <jra@samba.org>2013-12-13 12:45:57 -0800
commit4ec65713fe21b7993fb4fe27754ff32b52775f1d (patch)
tree6e9b8998fc844229f40a2855ebfd4b8936d93836 /libcli/security
parentb6e323bcf61c0db013122f321c11dba4211af17e (diff)
downloadsamba-4ec65713fe21b7993fb4fe27754ff32b52775f1d.tar.gz
samba-4ec65713fe21b7993fb4fe27754ff32b52775f1d.tar.xz
samba-4ec65713fe21b7993fb4fe27754ff32b52775f1d.zip
secacl: Fix a memleak in an error path
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libcli/security')
-rw-r--r--libcli/security/secacl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcli/security/secacl.c b/libcli/security/secacl.c
index 5778800454..61cf52134a 100644
--- a/libcli/security/secacl.c
+++ b/libcli/security/secacl.c
@@ -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;
}