From: Andreas Schneider Date: Thu, 2 Nov 2017 20:48:21 +0000 (+0100) Subject: vfs_fruit: Unlink memory on error X-Git-Tag: tevent-0.9.34~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=142f778c73158b71869fb7051a03d9afad91e77b;p=thirdparty%2Fsamba.git vfs_fruit: Unlink memory on error Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 78170e7abdd..15e42fb4dfd 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; }