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)
Feb 13 2024, 2:46 PM
Unknown Object (File)
Feb 10 2024, 5:04 AM
Unknown Object (File)
Dec 20 2023, 4:19 AM
Unknown Object (File)
Dec 2 2023, 12:39 PM
Unknown Object (File)
Oct 25 2023, 9:58 AM
Unknown Object (File)
Aug 24 2023, 5:17 AM
Unknown Object (File)
Jul 22 2023, 9:48 PM
Unknown Object (File)
Jul 2 2023, 9:38 PM
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 Skipped
Unit
Tests Skipped

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.