From 37899250f3b02dcca9969aae765454b937a47931 Mon Sep 17 00:00:00 2001 From: Justin Husted Date: Thu, 31 Oct 2019 10:20:42 -0700 Subject: [PATCH] Fix memory leak in cmd_format.c Signed-off-by: Justin Husted --- cmd_format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd_format.c b/cmd_format.c index ae83a977..673c63a7 100644 --- a/cmd_format.c +++ b/cmd_format.c @@ -244,6 +244,8 @@ int cmd_format(int argc, char *argv[]) bch2_fs_stop(c); } + darray_free(device_paths); + return 0; }