From 3284b3fd4ad8ec3dacb5732962c6b434baa0f096 Mon Sep 17 00:00:00 2001 From: jpandre Date: Thu, 29 Nov 2007 11:17:42 +0000 Subject: [PATCH] Fixed a memory leak when user mapping is not activated --- libntfs-3g/security.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libntfs-3g/security.c b/libntfs-3g/security.c index 35511ea4..08b37b2b 100644 --- a/libntfs-3g/security.c +++ b/libntfs-3g/security.c @@ -3825,6 +3825,7 @@ static le32 build_inherited_id(struct SECURITY_CONTEXT *scx, pos += usidsz; securid = setsecurityattr(scx->vol, (SECURITY_DESCRIPTOR_RELATIVE*)newattr, pos); + free(newattr); } else securid = cpu_to_le32(0); return (securid);