HomeFreeBSD

Fix ICP memleak introduced in #4760

Description

Fix ICP memleak introduced in #4760

The ICP requires destructors to for each crypto module that is added.
These do not necessarily exist in Illumos because they assume that
these modules can never be unloaded from the kernel. Some of this
cleanup code was missed when #4760 was merged, resulting in leaks.
This patch simply fixes that.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Issue #4760
Closes #5265

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on Oct 12 2016, 7:52 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 12 2016, 7:52 PM
Parents
rG06cf4d989058: Fix coverity defects: CID 147606, 147609
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGef78750d98f7: Fix ICP memleak introduced in #4760 (authored by Tom Caputi <tcaputi@datto.com>).Oct 12 2016, 7:52 PM