freebsd-nq/lib
Matthew Ahrens b6722b871b nvlist leaked in zpool_find_config()
In `zpool_find_config()`, the `pools` nvlist is leaked.  Part of it (a
sub-nvlist) is returned in `*configp`, but the callers also leak that.

Additionally, in `zdb.c:main()`, the `searchdirs` is leaked.

The leaks were detected by ASAN (`configure --enable-asan`).

This commit resolves the leaks.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Closes #11396
2020-12-28 10:05:31 -08:00
..
libavl Fixes for make dist 2020-06-26 14:20:02 -07:00
libefi pool may become suspended during device expansion 2020-09-17 20:03:10 -07:00
libicp Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libnvpair Include the ABI with dist tarball 2020-11-21 10:44:52 -08:00
libshare zpool command complains about /etc/exports.d 2020-09-25 13:09:40 -07:00
libspl Linux 5.10 compat: use iov_iter in uio structure 2020-12-18 08:48:26 -08:00
libtpool Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libunicode Fixes for make dist 2020-06-26 14:20:02 -07:00
libuutil Include the ABI with dist tarball 2020-11-21 10:44:52 -08:00
libzfs Linux 5.10 compat: use iov_iter in uio structure 2020-12-18 08:48:26 -08:00
libzfs_core Include the ABI with dist tarball 2020-11-21 10:44:52 -08:00
libzfsbootenv libzfsbootenv: do not depend on libnvpair 2020-11-22 15:16:42 -08:00
libzpool Linux 5.10 compat: use iov_iter in uio structure 2020-12-18 08:48:26 -08:00
libzstd Avoid symbol collision with in-kernel zstdlib 2020-08-24 12:20:41 -07:00
libzutil nvlist leaked in zpool_find_config() 2020-12-28 10:05:31 -08:00
Makefile.am Library ABI tracking with abigail 2020-11-17 09:18:52 -08:00