Page MenuHomeFreeBSD

Fix a memory leak in bridge_interfaces.
ClosedPublic

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

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; 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.
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.