From 142f778c73158b71869fb7051a03d9afad91e77b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 2 Nov 2017 21:48:21 +0100 Subject: [PATCH] vfs_fruit: Unlink memory on error Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- source3/modules/vfs_fruit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 78170e7abddc..15e42fb4dfda 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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; }