HomeFreeBSD

Fixed memory leaks in zevent handling

Description

Fixed memory leaks in zevent handling

Some nvlist_t could be leaked in error handling paths.
Also make sure cb argument to zfs_zevent_post() cannnot
be NULL.

Signed-off-by: Isaac Huang <he.huang@intel.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2158

Details

Provenance
Isaac Huang <he.huang@intel.com>Authored on Mar 4 2014, 3:00 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 20 2014, 5:45 PM
Parents
rGbd089c547784: Illumos 4631 - zvol_get_stats triggering too many reads
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG0426c16804e5: Fixed memory leaks in zevent handling (authored by Isaac Huang <he.huang@intel.com>).Aug 20 2014, 5:45 PM