Fix a memory leak with the variable logfname. logfname was
alloc-ed with strdup but never freed. This problem was found with clang's
static analysis tool scan-build/scan-view
Details
- Reviewers
emaste stevek trix_juniper.net
Run scan-build before and after, verify the problem is resolved.
Manual review use of pointer in source.
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Many years ago I did some work on newsyslog. I could handle the review and commit of this update if that's okay with other reviewers.
So, I'm finally getting around to looking at this. The delay was that I didn't have a freebsd-12.current system running. And now that I have a current system to test changes on, it looks like this issue was solved back in revision 303449 by ed, Thu Jul 28 16:02:30 2016 UTC. See revision 303449
So this could be closed as "already fixed", except that I don't see how I could do that!
Sorry for the long delay.
Let's see if I can finally figure out how to close this review-request (after almost 3 years...)
The problem is fixed by this revision was already fixed back in Jul 28 16:02:30 2016.