mirror_zfs/cmd/zhack
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
..
.gitignore Illumos #2619 and #2747 2013-01-08 10:35:35 -08:00
Makefile.am Unconditionally enable debugging for libzpool 2020-07-10 15:30:31 -07:00
zhack.c nvlist leaked in zpool_find_config() 2020-12-28 10:05:31 -08:00