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
F164344758: D10386.id36939.diff
Fri, Jul 31, 12:45 AM
Unknown Object (File)
Tue, Jul 28, 9:15 PM
Unknown Object (File)
Mon, Jul 20, 6:07 AM
Unknown Object (File)
Sun, Jul 19, 11:32 PM
Unknown Object (File)
Sun, Jul 19, 9:20 PM
Unknown Object (File)
Sun, Jul 5, 7:29 AM
Unknown Object (File)
Sat, Jul 4, 10:31 PM
Unknown Object (File)
Jul 1 2026, 12:35 PM
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.