Skip to content

Commit

Permalink
Btrfs: fix path leakage on subvol deletion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josef Bacik committed Jun 15, 2011
1 parent 30b4caf commit 71d7aed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 71d7aed

Please sign in to comment.