]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: Unlink memory on error
authorAndreas Schneider <asn@samba.org>
Thu, 2 Nov 2017 20:48:21 +0000 (21:48 +0100)
committerRalph Boehme <slow@samba.org>
Mon, 13 Nov 2017 09:09:10 +0000 (10:09 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fruit.c

index 78170e7abddcaba5ba5bb3d0eef059bec6ecd5ca..15e42fb4dfdaeded9712f95bb0e1b95e31cedf44 100644 (file)
@@ -1078,6 +1078,7 @@ static int ad_convert(struct adouble *ad,
 
        ok = ad_convert_xattr(ad, smb_fname, map);
        if (!ok) {
+               munmap(map, origlen);
                return -1;
        }