Skip to contentSkip to conversation

Btrfs: fix path leakage on subvol deletion

PATCH New Josef Bacik 1 participant 1 message Jun 14, 2011 Btrfs file system

lore
Share & tools
lore
#0 lore raw

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,

---
 fs/btrfs/inode.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
fs/btrfs/inode.c +1 -0
index 30a1d24..1483372 100644
@@ -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