From: Josef Bacik Date: Tue, 14 Jun 2011 18:24:32 +0000 (-0400) Subject: Btrfs: fix path leakage on subvol deletion X-Git-Tag: v5.15~24835^2~5^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=71d7aed014457147e8f71a843d5fbf03235e4a85;p=mirror_ubuntu-kernels.git 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 --- 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; }