]> granicus.if.org Git - zfs/commit
Fixed small memory leak in ereport handling
authorTom Caputi <tcaputi@datto.com>
Fri, 19 May 2017 00:35:49 +0000 (20:35 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 May 2017 00:35:49 +0000 (17:35 -0700)
commita32df59e187a6187eb96c52b93cf02e8af51f327
treed680b6277d7fe6cb7c8b03367514d3abf0088aee
parenta9f0d7dd89fd9e09ef41ca98d6ba06bbd3d6ea88
Fixed small memory leak in ereport handling

One pre-check in zfs_ereport_start() was being called after
the nvlists were being allocated. This simply corrects that
issue.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #6140
module/zfs/zfs_fm.c