summaryrefslogtreecommitdiff
path: root/cmd_debug.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-05-06 16:08:14 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2021-05-06 16:08:14 -0400
commit7942d5cab4f02bd4db12ee26a792a6012b4d7b07 (patch)
treef70fdb7696448dacf720afada4a891f3ea2aa522 /cmd_debug.c
parentbb74624daa138837d04c2a9931723115b9b6d645 (diff)
Fix a missing free in dump_one_device()
Hopefully this will fix some OOMs Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'cmd_debug.c')
-rw-r--r--cmd_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd_debug.c b/cmd_debug.c
index 4d66735..2f56e41 100644
--- a/cmd_debug.c
+++ b/cmd_debug.c
@@ -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[])