diff --git a/test/unit/lib/ftl/ftl_md/ftl_md_ut.c b/test/unit/lib/ftl/ftl_md/ftl_md_ut.c index 238712fbe..0b03f194c 100644 --- a/test/unit/lib/ftl/ftl_md/ftl_md_ut.c +++ b/test/unit/lib/ftl/ftl_md/ftl_md_ut.c @@ -64,6 +64,7 @@ setup_band(struct ftl_band **band, const struct spdk_ocssd_geometry_data *geo, *band = test_init_ftl_band(dev, 0); rc = ftl_band_alloc_md(*band); CU_ASSERT_EQUAL_FATAL(rc, 0); + ftl_band_clear_md(*band); } static void