summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-08-27 01:02:01 +0000
committerdelphij <delphij@FreeBSD.org>2015-08-27 01:02:01 +0000
commit31d28b6b024b5f9627d52604ed140404ba94df79 (patch)
treea9efe800abb317ff68e502eb0b46fa462a0bc1a0 /cddl
parent8ec6c5900c12560d707b1c503a14c9d822625d06 (diff)
downloadFreeBSD-src-31d28b6b024b5f9627d52604ed140404ba94df79.zip
FreeBSD-src-31d28b6b024b5f9627d52604ed140404ba94df79.tar.gz
MFC r286737:
Plug a memory leak.
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/cmd/ztest/ztest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/cmd/ztest/ztest.c b/cddl/contrib/opensolaris/cmd/ztest/ztest.c
index 0695834..f76c8ea 100644
--- a/cddl/contrib/opensolaris/cmd/ztest/ztest.c
+++ b/cddl/contrib/opensolaris/cmd/ztest/ztest.c
@@ -5905,6 +5905,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 =
OpenPOWER on IntegriCloud