Page MenuHomeFreeBSD

Fix a memory leak in set80211chanlist
ClosedPublic

Authored by trix_juniper.net on Feb 17 2017, 6:39 PM.
Tags
None
Referenced Files
F164872150: D9654.id25324.diff
Tue, Aug 4, 9:45 AM
F164869539: D9654.id25406.diff
Tue, Aug 4, 9:31 AM
Unknown Object (File)
Mon, Aug 3, 7:10 AM
Unknown Object (File)
Thu, Jul 23, 3:44 AM
Unknown Object (File)
Wed, Jul 22, 9:31 AM
Unknown Object (File)
Tue, Jul 21, 3:30 AM
Unknown Object (File)
Wed, Jul 8, 12:58 PM
Unknown Object (File)
Tue, Jul 7, 12:17 PM
Subscribers

Details

Summary

The variable temp is allocated but never freed, now free it when it is not used.

Test Plan

Run clang's static analyzer scan-build before to find the problem, then run after to verify the fix.

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 set80211chanlist.
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.

oops!

This revision is now accepted and ready to land.Feb 17 2017, 6:42 PM
This revision was automatically updated to reflect the committed changes.