summaryrefslogtreecommitdiff
path: root/string-table.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2017-04-25 16:01:17 +0800
committerDavid Sterba <dsterba@suse.com>2017-05-02 16:13:37 +0200
commit795e9c0981c427928edb9cc1966903f699ce1b11 (patch)
treef238f82125237c5f76cf0f88a876c4f117b8c998 /string-table.h
parent467b49ccbbb132d4d2ff4fe43d9581b89f349cea (diff)
btrfs-progs: Fix memory leak when 0 sized block group item is found
When a 0 sized block group item is found, set_extent_bits() will not really set any bits. While set_state_private() still inserts allocated block group cache into block group extent_io_tree. So at close_ctree() time, we won't free the private block group cache stored since we can't find any bit set for the 0 sized block group. To fix it, at btrfs_read_block_groups() we skip any 0 sized block group, so such leak won't happen. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'string-table.h')
0 files changed, 0 insertions, 0 deletions