summaryrefslogtreecommitdiff
path: root/cmd_format.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-04-16 17:28:14 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2021-04-16 17:28:40 -0400
commit8ba5e814fd3d0e9559adca72f73202a7dc304acc (patch)
treee1c628dee5fb95ce35674f403a0838c52379ef51 /cmd_format.c
parent967c8704989f6194dc40ea884b5d0f713d4fb74c (diff)
Fix some small memory leaks
Found with -fsanitize=leak Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'cmd_format.c')
-rw-r--r--cmd_format.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd_format.c b/cmd_format.c
index b88ffe91..3f96f5de 100644
--- a/cmd_format.c
+++ b/cmd_format.c
@@ -236,6 +236,7 @@ int cmd_format(int argc, char *argv[])
fs_opts,
opts,
devices.item, darray_size(devices));
+ bch2_opt_strs_free(&fs_opt_strs);
if (!quiet)
bch2_sb_print(sb, false, 1 << BCH_SB_FIELD_members, HUMAN_READABLE);