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)
Mon, Feb 9, 1:09 PM
Unknown Object (File)
Thu, Feb 5, 8:57 PM
Unknown Object (File)
Tue, Feb 3, 12:26 AM
Unknown Object (File)
Sat, Jan 31, 3:10 PM
Unknown Object (File)
Sat, Jan 31, 4:34 AM
Unknown Object (File)
Fri, Jan 30, 8:15 PM
Unknown Object (File)
Thu, Jan 29, 12:35 AM
Unknown Object (File)
Tue, Jan 27, 12:57 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.