Skip to content

Commit 85802aa

Browse files
ryaobehlendorf
authored andcommitted
Free props in ztest_init()
Valgrind complained about this and it's absolutely right. The props nvlist was not being freed in ztest_init. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Richard Yao <ryao@gentoo.org> Closes #2174
1 parent 0bb89b6 commit 85802aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/ztest/ztest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6035,6 +6035,7 @@ ztest_init(ztest_shared_t *zs)
60356035
}
60366036
VERIFY3U(0, ==, spa_create(ztest_opts.zo_pool, nvroot, props, NULL));
60376037
nvlist_free(nvroot);
6038+
nvlist_free(props);
60386039

60396040
VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG));
60406041
zs->zs_metaslab_sz =

0 commit comments

Comments
 (0)