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)
Wed, Apr 1, 5:36 PM
Unknown Object (File)
Tue, Mar 31, 11:39 PM
Unknown Object (File)
Tue, Mar 31, 10:21 AM
Unknown Object (File)
Tue, Mar 24, 2:29 AM
Unknown Object (File)
Tue, Mar 24, 1:42 AM
Unknown Object (File)
Mon, Mar 23, 1:20 PM
Unknown Object (File)
Mon, Mar 16, 5:46 PM
Unknown Object (File)
Jan 13 2026, 2:28 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.