Page MenuHomeFreeBSD

Fix a memory leak in bridge_interfaces.

Authored by on Feb 19 2017, 5:30 PM.



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

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline retitled this revision from to Fix a memory leak in bridge_interfaces.. updated this object. edited the test plan for this revision. (Show Details) added reviewers: stevek, adrian. set the repository for this revision to rS FreeBSD src repository.
adrian accepted this revision.Feb 19 2017, 6:24 PM
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.