Page MenuHomeFreeBSD

Fix 'last' memory leak
ClosedPublic

Authored by trix_juniper.net on Mar 2 2017, 12:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 29, 1:38 PM
Unknown Object (File)
Thu, Dec 25, 1:56 AM
Unknown Object (File)
Wed, Dec 24, 11:56 PM
Unknown Object (File)
Fri, Dec 19, 1:57 PM
Unknown Object (File)
Thu, Dec 18, 3:15 PM
Unknown Object (File)
Nov 18 2025, 5:14 AM
Unknown Object (File)
Nov 12 2025, 9:40 AM
Unknown Object (File)
Nov 10 2025, 2:02 PM
Subscribers

Details

Summary

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

trix_juniper.net retitled this revision from to Fix 'last' memory leak .
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.Mar 2 2017, 9:17 AM
This revision was automatically updated to reflect the committed changes.