[Btrfs-devel][PATCH]Fix a place which maybe cause memory leak
Liu Hui
onlyflyer at gmail.com
Wed Jan 23 08:28:28 PST 2008
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
More information about the Btrfs-devel
mailing list