Page MenuHomeFreeBSD

Fix 'last' memory leak

Authored by on Mar 2 2017, 12:06 AM.



Fix a memory leak with last

last.c wtmp : free memory allocated to 'buf

Test Plan

Run clang's static analyzer 'scan-build' to find the problem and to show it's resolution.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline retitled this revision from to Fix 'last' memory leak . updated this object. edited the test plan for this revision. (Show Details) added reviewers: stevek, ed. set the repository for this revision to rS FreeBSD src repository.
ed accepted this revision.Mar 2 2017, 9:17 AM
ed edited edge metadata.
This revision is now accepted and ready to land.Mar 2 2017, 9:17 AM
This revision was automatically updated to reflect the committed changes.