mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-01 22:48:06 +00:00
Btrfs-progs: fsck: fix possible memory leaks in run_next_block()
We still need free allocated cache memory in case error happens. Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
30e72cc70d
commit
c920facc18
@ -5909,6 +5909,9 @@ out:
|
|||||||
free_block_group_tree(&block_group_cache);
|
free_block_group_tree(&block_group_cache);
|
||||||
free_device_extent_tree(&dev_extent_cache);
|
free_device_extent_tree(&dev_extent_cache);
|
||||||
free_extent_cache_tree(&seen);
|
free_extent_cache_tree(&seen);
|
||||||
|
free_extent_cache_tree(&pending);
|
||||||
|
free_extent_cache_tree(&reada);
|
||||||
|
free_extent_cache_tree(&nodes);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user