Liu Hui
2008-Jan-23 08:29 UTC
[Btrfs-devel][PATCH]Fix a place which maybe cause memory leak
Hello: This fix may be insignificant, beacuse the memory leak have little chance to happen. Anyway, I post this patch. diff -r 6c243ad8dddf inode.c --- a/inode.c Fri Jan 18 10:54:22 2008 -0500 +++ b/inode.c Thu Jan 24 00:19:04 2008 +0800 @@ -1763,7 +1763,7 @@ static int btrfs_mkdir(struct inode *dir err = btrfs_find_free_objectid(trans, root, dir->i_ino, &objectid); if (err) { err = -ENOSPC; - goto out_unlock; + goto out_fail; } -- Thanks & Best Regards Liu Hui