diff options
author | Josef Bacik <josef@redhat.com> | 2011-06-14 14:24:32 -0400 |
---|---|---|
committer | Josef Bacik <josef@redhat.com> | 2011-06-15 13:24:45 -0400 |
commit | 71d7aed014457147e8f71a843d5fbf03235e4a85 (patch) | |
tree | bdcb1845959bf6f7ca7f5382a7b53712eefe822a /fs | |
parent | 30b4caf5d73af5c99cf1b2b46496d8bc35330992 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/inode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index c15636b17874..5813dec5101c 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -3076,6 +3076,7 @@ int btrfs_unlink_subvol(struct btrfs_trans_handle *trans, ret = btrfs_update_inode(trans, root, dir); BUG_ON(ret); + btrfs_free_path(path); return 0; } |