Page MenuHomeFreeBSD

Fix a memory leak in ipfilter
ClosedPublic

Authored by trix_juniper.net on Mar 3 2017, 4:57 PM.

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; 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.
ngie accepted this revision.Mar 3 2017, 5:53 PM
ngie edited edge metadata.
This revision is now accepted and ready to land.Mar 3 2017, 5:53 PM
cy accepted this revision.Mar 3 2017, 6:34 PM
cy edited edge metadata.

I will commit this shortly for you.

This revision was automatically updated to reflect the committed changes.