Btrfs: fix path leakage on subvol deletion
authorJosef Bacik <josef@redhat.com>
Tue, 14 Jun 2011 18:24:32 +0000 (14:24 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 15 Jun 2011 17:24:45 +0000 (13:24 -0400)
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>
fs/btrfs/inode.c

index c15636b17874bb1f1e181dabe5e344e2a19b45b4..5813dec5101cc1856762d33b5f1370069c8ecef5 100644 (file)
@@ -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;
 }