[PATCH] btrfs-progs: add missing free operation of raid_map for raid56

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We forgot free raid_map for raid56's map_bio.
This patch add it.

Signed-off-by: Zhao Lei <zhaolei@xxxxxxxxxxxxxx>
---
 disk-io.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/disk-io.c b/disk-io.c
index fdcfd6d..46a5a46 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -428,6 +428,7 @@ int write_and_map_eb(struct btrfs_trans_handle *trans,
 		ret = write_extent_to_disk(eb);
 		BUG_ON(ret);
 	}
+	kfree(raid_map);
 	kfree(multi);
 	return 0;
 }
-- 
1.8.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux