diff options
author | Richard Yao <[email protected]> | 2014-01-20 20:30:04 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-03-12 09:01:48 -0700 |
commit | 85802aa42bf8f878022ec73ddde6bf3702f67d01 (patch) | |
tree | ab63c9848f03aa6d2e8957e79eb932a4f3e2b233 /cmd/ztest | |
parent | 0bb89b6c594259829556f6dea5a89e722f214fd3 (diff) |
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 <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Closes #2174
Diffstat (limited to 'cmd/ztest')
-rw-r--r-- | cmd/ztest/ztest.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 = |