diff options
author | Matthew Ahrens <[email protected]> | 2020-12-23 09:52:24 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-01-05 10:31:47 -0800 |
commit | a296875da080a93aa1aef7cea0aace4f6e867cab (patch) | |
tree | e1492bc878cb5409fdc828126ee47dab485a8168 /config/kernel-rename.m4 | |
parent | 921ec61b7712e60dd9ec4fc1161dc6d45d62c0e7 (diff) |
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 <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matthew Ahrens <[email protected]>
Closes #11396
Diffstat (limited to 'config/kernel-rename.m4')
0 files changed, 0 insertions, 0 deletions