kinfo_getvmobject.c kinfo_getvmobject
When sysctlbyname fails, free buf before returning.
Details
Details
- Reviewers
jhb stevek - Commits
- rS319443: When sysctlbyname fails, free buf before returning.
Use clang's static analyzer, scan-build, to find the problem and show resolution.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Hmm, I was going to suggest looking in other places in libutil that I copied this from, but it seems other kinfo_getfoo() functions don't use a loop to retry but just add a fudge factor to the size and hope it is enough.