Page MenuHomeFreeBSD

Fix a memory leak in bridge_interfaces.
ClosedPublic

Authored by trix_juniper.net on Feb 19 2017, 5:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 20, 2:54 AM
Unknown Object (File)
Sun, Oct 19, 2:24 AM
Unknown Object (File)
Mon, Oct 13, 12:00 PM
Unknown Object (File)
Sun, Oct 12, 9:12 AM
Unknown Object (File)
Sat, Oct 11, 10:25 PM
Unknown Object (File)
Sat, Oct 11, 10:25 PM
Unknown Object (File)
Sat, Oct 11, 1:10 PM
Unknown Object (File)
Sep 21 2025, 1:26 AM
Subscribers

Details

Summary

The local pointer 'pad' is assigned memory that is freed before bridge_interfaces returns.

Test Plan

Run clang's static analyzer scan-build before to find the problem, run it after to show problem is resolved.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trix_juniper.net retitled this revision from to Fix a memory leak in bridge_interfaces..
trix_juniper.net updated this object.
trix_juniper.net edited the test plan for this revision. (Show Details)
trix_juniper.net added reviewers: stevek, adrian.
trix_juniper.net set the repository for this revision to rS FreeBSD src repository - subversion.
adrian edited edge metadata.
This revision is now accepted and ready to land.Feb 19 2017, 6:24 PM
This revision was automatically updated to reflect the committed changes.