mirror_zfs/lib
Matthew Ahrens a296875da0 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
2021-01-05 10:31:47 -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-18 12:38:30 -07:00
libicp Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libnvpair Include the ABI with dist tarball 2020-11-22 10:01:47 -08:00
libshare zpool command complains about /etc/exports.d 2020-10-01 12:20:06 -07:00
libspl Linux 5.10 compat: use iov_iter in uio structure 2020-12-23 14:35:39 -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-22 10:01:47 -08:00
libzfs Linux 5.10 compat: use iov_iter in uio structure 2020-12-23 14:35:39 -08:00
libzfs_core Include the ABI with dist tarball 2020-11-22 10:01:47 -08:00
libzfsbootenv libzfsbootenv: do not depend on libnvpair 2020-11-24 10:27:14 -08:00
libzpool Linux 5.10 compat: use iov_iter in uio structure 2020-12-23 14:35:39 -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() 2021-01-05 10:31:47 -08:00
Makefile.am Library ABI tracking with abigail 2020-11-17 20:29:02 +00:00