Page MenuHomeFreeBSD

fix memory leak in 'finger'
ClosedPublic

Authored by trix_juniper.net on Feb 17 2017, 5:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 7:45 AM
Unknown Object (File)
Tue, Nov 26, 9:46 AM
Unknown Object (File)
Nov 24 2024, 7:59 AM
Unknown Object (File)
Nov 22 2024, 4:59 PM
Unknown Object (File)
Nov 17 2024, 11:29 AM
Unknown Object (File)
Nov 16 2024, 5:35 AM
Unknown Object (File)
Nov 15 2024, 1:06 PM
Unknown Object (File)
Nov 5 2024, 3:57 AM
Subscribers

Details

Summary

the variable nargv is allocated but never freed, so free it when the it is no longer used

Test Plan

Run clang's scan-build before the fix to find the problem, run after to verify fixed.

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 memory leak in 'finger'.
trix_juniper.net updated this object.
trix_juniper.net edited the test plan for this revision. (Show Details)
trix_juniper.net added reviewers: stevek, ed.
trix_juniper.net set the repository for this revision to rS FreeBSD src repository - subversion.
ed edited edge metadata.
This revision is now accepted and ready to land.Feb 17 2017, 5:53 PM
This revision was automatically updated to reflect the committed changes.