mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
Fix a missing free in dump_one_device()
Hopefully this will fix some OOMs Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
bb74624daa
commit
7942d5cab4
@ -100,6 +100,7 @@ static void dump_one_device(struct bch_fs *c, struct bch_dev *ca, int fd)
|
||||
|
||||
qcow2_write_image(ca->disk_sb.bdev->bd_fd, fd, &data,
|
||||
max_t(unsigned, btree_bytes(c) / 8, block_bytes(c)));
|
||||
darray_free(data);
|
||||
}
|
||||
|
||||
int cmd_dump(int argc, char *argv[])
|
||||
|
Loading…
Reference in New Issue
Block a user