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)
Wed, Mar 18, 4:37 PM
Unknown Object (File)
Mon, Mar 16, 10:23 AM
Unknown Object (File)
Feb 26 2026, 4:41 AM
Unknown Object (File)
Feb 21 2026, 7:49 AM
Unknown Object (File)
Feb 21 2026, 1:39 AM
Unknown Object (File)
Feb 20 2026, 11:53 AM
Unknown Object (File)
Feb 8 2026, 12:21 PM
Unknown Object (File)
Jan 27 2026, 2:55 PM
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 Not Applicable
Unit
Tests Not Applicable

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.