Skip to contentSkip to conversation

btrfs:fix a memory leak in acl

PATCH New Yang Hongyang 1 participant 1 message Jan 26, 2010 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs:fix a memory leak in acl

In btrfs_init_acl(),cloned acl is not released.Fix that.

---
 fs/btrfs/acl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/btrfs/acl.c +1 -0
index 54f4798..6df6d6e 100644
@@ -244,6 +244,7 @@ int btrfs_init_acl(struct btrfs_trans_handle *trans,
 						    ACL_TYPE_ACCESS);
 			}
 		}
+		posix_acl_release(clone);
 	}
 failed:
 	posix_acl_release(acl);
Signature · 5 lines
1.6.5.2

-- 
Regards
Yang Hongyang