Page MenuHomeFreeBSD

rtsold: fix memory leak in script execution
ClosedPublic

Authored by vangyzen on Feb 23 2022, 4:57 PM.
Tags
None
Referenced Files
F156835977: D34355.id103226.diff
Sat, May 16, 7:37 PM
F156835942: D34355.id103157.diff
Sat, May 16, 7:37 PM
F156835875: D34355.diff
Sat, May 16, 7:37 PM
Unknown Object (File)
Mon, May 4, 8:58 AM
Unknown Object (File)
Sun, May 3, 6:27 PM
Unknown Object (File)
Sun, May 3, 8:51 AM
Unknown Object (File)
Sun, May 3, 1:24 AM
Unknown Object (File)
Tue, Apr 28, 2:42 AM
Subscribers

Details

Summary

Since commit 04e9edb54428, rtsold has leaked the memory for the
argument vector of every script it runs.

Fixes: 04e9edb5442826a14616157962361ff81e4a38fe
MFC after: 1 week
Sponsored by: Dell EMC Isilon

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44548
Build 41436: arc lint + arc unit

Event Timeline

markj added inline comments.
usr.sbin/rtsold/cap_script.c
201

I'd add a new error variable, but I'm ok with it either way.

This revision is now accepted and ready to land.Feb 23 2022, 5:00 PM
This revision was automatically updated to reflect the committed changes.