HomeFreeBSD

libzpool: set_global_var: refactor to not modify 'arg'

Description

libzpool: set_global_var: refactor to not modify 'arg'

Also fixes leak of the dlopen handle in the error case.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com>
Signed-off-by: Christian Schwarz <me@cschwarz.com>
Closes #11602

Details

Provenance
me_cschwarz.comAuthored on Feb 16 2021, 11:27 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Feb 20 2021, 6:45 AM
Parents
rGb5fffa1d294f: libzpool: set_global_var: fix endianness handling (fixes zdb -o )
Branches
Unknown
Tags
Unknown