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)
Oct 21 2024, 7:30 AM
Unknown Object (File)
Oct 21 2024, 6:49 AM
Unknown Object (File)
Oct 21 2024, 6:49 AM
Unknown Object (File)
Oct 21 2024, 6:25 AM
Unknown Object (File)
Oct 17 2024, 1:43 PM
Unknown Object (File)
Oct 16 2024, 12:59 PM
Unknown Object (File)
Sep 27 2024, 12:05 AM
Unknown Object (File)
Sep 26 2024, 6:23 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.