zfs/cmd
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
..
arc_summary arc_summary3: Handle overflowing value width 2020-12-23 14:34:59 -08:00
arcstat FreeBSD: Update usage of py-sysctl 2020-12-23 14:34:59 -08:00
dbufstat dbufstat: Fix warnings with Python 3.8 2020-12-23 15:11:01 -08:00
fsck_zfs Fix typos in cmd/ 2019-08-30 09:43:30 -07:00
mount_zfs mount_zfs: print strerror instead of errno for error reporting 2020-12-23 14:34:59 -08:00
raidz_test Unconditionally enable debugging for libzpool 2020-07-10 15:30:31 -07:00
vdev_id Silence 'make checkbashisms' 2020-08-20 13:45:47 -07:00
zdb nvlist leaked in zpool_find_config() 2021-01-05 10:31:47 -08:00
zed FreeBSD: notify userspace when a vdev is removed 2020-12-23 13:08:12 -08:00
zfs Use the correct return type for getopt 2020-12-23 14:34:59 -08:00
zfs_ids_to_path Use the correct return type for getopt 2020-12-23 14:34:59 -08:00
zgenhostid zgenhostid: accept hostid arguments equal to zero. 2020-11-17 12:19:33 -08:00
zhack nvlist leaked in zpool_find_config() 2021-01-05 10:31:47 -08:00
zinject Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
zpool Use the correct return type for getopt 2020-12-23 14:34:59 -08:00
zstream Use the correct return type for getopt 2020-12-23 14:34:59 -08:00
zstreamdump Minor `zstream redup` command fixes 2020-04-10 21:10:09 -07:00
ztest nvlist leaked in zpool_find_config() 2021-01-05 10:31:47 -08:00
zvol_id Replace ZFS on Linux references with OpenZFS 2020-10-16 13:01:24 -07:00
zvol_wait zvol_wait should ignore redacted zvols 2019-11-06 10:51:19 -08:00
Makefile.am Small program that converts a dataset id and an object id to a path 2020-05-20 10:05:33 -07:00