Page MenuHomeFreeBSD

rtsold: fix memory leak in script execution
ClosedPublic

Authored by vangyzen on Feb 23 2022, 4:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 29, 12:06 AM
Unknown Object (File)
Mon, Dec 15, 12:25 AM
Unknown Object (File)
Sun, Dec 14, 12:26 PM
Unknown Object (File)
Nov 28 2025, 10:58 PM
Unknown Object (File)
Nov 28 2025, 8:01 AM
Unknown Object (File)
Nov 26 2025, 10:59 AM
Unknown Object (File)
Nov 22 2025, 11:17 PM
Unknown Object (File)
Nov 13 2025, 11:37 PM
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.