HomeFreeBSD

Fix memory leak in recv_skip

Description

Fix memory leak in recv_skip

When the exception branch exits, the buf is leaked.

Reviewed by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: luozhengzheng <luo.zhengzheng@zte.com.cn>
Closes #5262

Details

Provenance
luozhengzheng <luo.zhengzheng@zte.com.cn>Authored on Oct 11 2016, 5:24 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 11 2016, 5:24 PM
Parents
rG1697d2dcf173: Fix zfsctl_snapshot_{,un}mount() issues
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGfad5fb01adaf: Fix memory leak in recv_skip (authored by luozhengzheng <luo.zhengzheng@zte.com.cn>).Oct 11 2016, 5:24 PM