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
Unknown Object (File)
Mon, Apr 8, 9:40 AM
Unknown Object (File)
Mar 7 2024, 5:48 PM
Unknown Object (File)
Jan 29 2024, 11:47 PM
Unknown Object (File)
Dec 22 2023, 9:52 PM
Unknown Object (File)
Dec 18 2023, 10:52 AM
Unknown Object (File)
Sep 28 2023, 3:47 PM
Unknown Object (File)
Aug 10 2023, 5:48 PM
Unknown Object (File)
Aug 10 2023, 5:48 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 8714
Build 9053: arc lint + arc unit

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.