summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 10:59:57 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 11:25:33 +0200
commitc1049391c15596b1a725511a1f8979f0795bf6a0 (patch)
tree19d228d3fe68036b3d2c6e6fa1fcb22611130ed6 /source3
parent66c968068de9fba24c26e79a2ce314404353a991 (diff)
downloadsamba-c1049391c15596b1a725511a1f8979f0795bf6a0.tar.gz
samba-c1049391c15596b1a725511a1f8979f0795bf6a0.tar.bz2
samba-c1049391c15596b1a725511a1f8979f0795bf6a0.zip
s3: Fix Coverity ID 2330: RESOURCE_LEAK
Diffstat (limited to 'source3')
-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 5faf26f8b0..eb4525a385 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -520,6 +520,7 @@ static const char *create_pai_v2_entries(struct pai_val *paiv,
paie->ace_flags = CVAL(entry_offset,0);
if (!get_pai_owner_type(paie, entry_offset+1)) {
+ SAFE_FREE(paie);
return NULL;
}
if (!def_entry) {