Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71d7aed0 authored by Josef Bacik's avatar Josef Bacik
Browse files

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: default avatarJosef Bacik <josef@redhat.com>
parent 30b4caf5
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -3076,6 +3076,7 @@ int btrfs_unlink_subvol(struct btrfs_trans_handle *trans,
	ret = btrfs_update_inode(trans, root, dir);
	ret = btrfs_update_inode(trans, root, dir);
	BUG_ON(ret);
	BUG_ON(ret);


	btrfs_free_path(path);
	return 0;
	return 0;
}
}