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)
Sat, Sep 12, 1:37 PM
Unknown Object (File)
Sat, Sep 5, 6:19 AM
Unknown Object (File)
Fri, Aug 28, 5:25 PM
Unknown Object (File)
Thu, Aug 27, 5:49 PM
Unknown Object (File)
Mon, Aug 24, 4:47 PM
Unknown Object (File)
Aug 14 2026, 6:07 PM
Unknown Object (File)
Aug 14 2026, 4:05 PM
Unknown Object (File)
Aug 12 2026, 5:08 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.