From 85802aa42bf8f878022ec73ddde6bf3702f67d01 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Mon, 20 Jan 2014 20:30:04 -0500 Subject: 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 Signed-off-by: Richard Yao Closes #2174 --- cmd/ztest/ztest.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/ztest') diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 7b38dfaa6..d04b4dea0 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -6035,6 +6035,7 @@ ztest_init(ztest_shared_t *zs) } VERIFY3U(0, ==, spa_create(ztest_opts.zo_pool, nvroot, props, NULL)); nvlist_free(nvroot); + nvlist_free(props); VERIFY3U(0, ==, spa_open(ztest_opts.zo_pool, &spa, FTAG)); zs->zs_metaslab_sz = -- cgit v1.2.3