HomeFreeBSD

Free property names with spa_strfree() rather than strfree()

Description

Free property names with spa_strfree() rather than strfree()

Since they're allocated with spa_strdup(), they should be freed with
spa_strfree() so the proper length buffer is freed.

Reviewed-by: Richard Yao <ryao@gentoo.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #5082
Closes #5086

Details

Provenance
Tim Chase <tim@chase2k.com>Authored on Sep 10 2016, 3:16 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 12 2016, 4:45 PM
Parents
rGbd296705d5b6: Fix memory/fd leak in check_file() and is_spare()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG20aa7a4e319d: Free property names with spa_strfree() rather than strfree() (authored by Tim Chase <tim@chase2k.com>).Sep 12 2016, 4:45 PM