summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 11:00:36 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 11:25:33 +0200
commit4cdaac02dc827879de35235ed6e69c386d584e8e (patch)
tree86ef5883d58bec498c93c52e278a08106e5ba31d
parentc1049391c15596b1a725511a1f8979f0795bf6a0 (diff)
downloadsamba-4cdaac02dc827879de35235ed6e69c386d584e8e.tar.gz
samba-4cdaac02dc827879de35235ed6e69c386d584e8e.tar.bz2
samba-4cdaac02dc827879de35235ed6e69c386d584e8e.zip
s3: Fix Coverity ID 2329: RESOURCE_LEAK
-rw-r--r--source3/smbd/posix_acls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index eb4525a385..ebdc644ef9 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -442,6 +442,7 @@ static const char *create_pai_v1_entries(struct pai_val *paiv,
paie->ace_flags = SEC_ACE_FLAG_INHERITED_ACE;
if (!get_pai_owner_type(paie, entry_offset)) {
+ SAFE_FREE(paie);
return NULL;
}