]> granicus.if.org Git - zfs/commitdiff
Free props in ztest_init()
authorRichard Yao <ryao@gentoo.org>
Tue, 21 Jan 2014 01:30:04 +0000 (20:30 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Mar 2014 16:01:48 +0000 (09:01 -0700)
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

cmd/ztest/ztest.c

index 7b38dfaa69fa20d6d21b0d981fd493a59d9e3fa8..d04b4dea09c835b981698017f6a8057b4d46a2ae 100644 (file)
@@ -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 =