commit | 71d7aed014457147e8f71a843d5fbf03235e4a85 | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@redhat.com> | Tue Jun 14 14:24:32 2011 -0400 |
committer | Josef Bacik <josef@redhat.com> | Wed Jun 15 13:24:45 2011 -0400 |
tree | bdcb1845959bf6f7ca7f5382a7b53712eefe822a | |
parent | 30b4caf5d73af5c99cf1b2b46496d8bc35330992 [diff] [blame] |
Btrfs: fix path leakage on subvol deletion The delayed ref patch accidently removed the btrfs_free_path in btrfs_unlink_subvol, this puts it back and means we don't leak a path. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index c15636b..5813dec 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c
@@ -3076,6 +3076,7 @@ ret = btrfs_update_inode(trans, root, dir); BUG_ON(ret); + btrfs_free_path(path); return 0; }