Page MenuHomeFreeBSD

Do not double free the memory in if_clone.
ClosedPublic

Authored by kan on Apr 13 2017, 4:32 PM.
Tags
None
Referenced Files
F156669923: D10386.id36939.diff
Fri, May 15, 1:51 PM
F156651167: D10386.id27414.diff
Fri, May 15, 10:07 AM
Unknown Object (File)
Thu, May 14, 8:01 PM
Unknown Object (File)
Tue, May 12, 10:40 AM
Unknown Object (File)
Sat, May 9, 4:27 PM
Unknown Object (File)
Sat, May 9, 8:23 AM
Unknown Object (File)
Sat, May 9, 8:13 AM
Unknown Object (File)
Wed, May 6, 10:13 AM
Subscribers

Details

Summary

if_clone_attach function will drop the reference on failure which will
free the if_clone structure. No need to do it second time.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I'm not glebius@, but the patch looks correct.

This revision is now accepted and ready to land.Apr 13 2017, 5:19 PM

Thanks! Please commit whitespace separately from functional changes.

This revision was automatically updated to reflect the committed changes.