HomeFreeBSD

Fix dsl_prop_get_all_dsl() memory leak

Description

Fix dsl_prop_get_all_dsl() memory leak

On error dsl_prop_get_all_ds() does not free the nvlist it allocates.
This behavior may have been intentional when originally written
but is atypical and often confusing. Since no callers rely on this
behavior the function has been updated to always free the nvlist
on error.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: BearBabyLiu <liu.huang@zte.com.cn>
Closes #5320

Details

Provenance
BearBabyLiu <liu.huang@zte.com.cn>Authored on Nov 2 2016, 7:34 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 2 2016, 7:34 PM
Parents
rGe676a196249b: Skip async_destroy_001_pos on 32-bit systems
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG6d4210052be6: Fix dsl_prop_get_all_dsl() memory leak (authored by BearBabyLiu <liu.huang@zte.com.cn>).Nov 2 2016, 7:34 PM