Btrfs: fix path leakage on subvol deletion
PATCH 1/1 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 <[email protected]>
--- fs/btrfs/inode.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
fs/btrfs/inode.c +1 -0
@@ -3074,6 +3074,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 ; }
Signature · 1 line
1.7.5.2