Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2015 01:02:01 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r287184 - stable/10/cddl/contrib/opensolaris/cmd/ztest
Message-ID:  <201508270102.t7R121OX054260@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Thu Aug 27 01:02:01 2015
New Revision: 287184
URL: https://svnweb.freebsd.org/changeset/base/287184

Log:
  MFC r286737:
  
  Plug a memory leak.

Modified:
  stable/10/cddl/contrib/opensolaris/cmd/ztest/ztest.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/cddl/contrib/opensolaris/cmd/ztest/ztest.c
==============================================================================
--- stable/10/cddl/contrib/opensolaris/cmd/ztest/ztest.c	Wed Aug 26 23:58:03 2015	(r287183)
+++ stable/10/cddl/contrib/opensolaris/cmd/ztest/ztest.c	Thu Aug 27 01:02:01 2015	(r287184)
@@ -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 =



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508270102.t7R121OX054260>