Page MenuHomeFreeBSD

Fix a memory leak in ipfilter
ClosedPublic

Authored by trix_juniper.net on Mar 3 2017, 4:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 1:12 AM
Unknown Object (File)
Sun, Oct 12, 3:05 AM
Unknown Object (File)
Sat, Oct 11, 10:24 PM
Unknown Object (File)
Sat, Oct 11, 10:23 PM
Unknown Object (File)
Sat, Oct 11, 10:23 PM
Unknown Object (File)
Sat, Oct 11, 1:08 PM
Unknown Object (File)
Mon, Sep 29, 7:34 AM
Unknown Object (File)
Mon, Sep 29, 1:45 AM
Subscribers

Details

Summary

lib/save_v2trace.c snmpv2_parse
Free str before returning when ctx's calloc fails

Test Plan

Run clang's static analyzer, scan-build, to find the problem, then later to show resolution.

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 ipfilter.
trix_juniper.net updated this object.
trix_juniper.net edited the test plan for this revision. (Show Details)
trix_juniper.net added reviewers: stevek, cy, ngie.
trix_juniper.net set the repository for this revision to rS FreeBSD src repository - subversion.
ngie edited edge metadata.
This revision is now accepted and ready to land.Mar 3 2017, 5:53 PM
cy edited edge metadata.

I will commit this shortly for you.