Page MenuHomeFreeBSD

Fix memory leaks in route
ClosedPublic

Authored by trix_juniper.net on Feb 19 2017, 5:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 4, 2:57 PM
Unknown Object (File)
Fri, Sep 4, 1:51 AM
Unknown Object (File)
Fri, Sep 4, 1:25 AM
Unknown Object (File)
Thu, Sep 3, 8:09 PM
Unknown Object (File)
Thu, Sep 3, 3:40 AM
Unknown Object (File)
Wed, Sep 2, 8:51 AM
Unknown Object (File)
Wed, Sep 2, 1:08 AM
Unknown Object (File)
Wed, Sep 2, 12:59 AM
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 Not Applicable
Unit
Tests Not Applicable

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.