Page MenuHomeFreeBSD

Fix memory leaks in route
ClosedPublic

Authored by trix_juniper.net on Feb 19 2017, 5:52 PM.
Tags
None
Referenced Files
F161646264: D9676.id25386.diff
Sun, Jul 5, 1:54 PM
Unknown Object (File)
Thu, Jul 2, 6:49 AM
Unknown Object (File)
Sun, Jun 21, 6:36 AM
Unknown Object (File)
Sat, Jun 20, 12:00 AM
Unknown Object (File)
Fri, Jun 19, 4:37 AM
Unknown Object (File)
May 31 2026, 1:02 AM
Unknown Object (File)
May 30 2026, 11:11 AM
Unknown Object (File)
May 29 2026, 3:27 PM
Subscribers

Details

Summary

route.c flushroutes_fib and interfaces have the same fix.
The local pointer 'buf' is freed before the function returns

Test Plan

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

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

trix_juniper.net retitled this revision from to Fix memory leaks in route.
trix_juniper.net updated this object.
trix_juniper.net edited the test plan for this revision. (Show Details)
trix_juniper.net added reviewers: stevek, melifaro.
trix_juniper.net set the repository for this revision to rS FreeBSD src repository - subversion.
This revision is now accepted and ready to land.Mar 31 2018, 3:03 PM
This revision was automatically updated to reflect the committed changes.