Page MenuHomeFreeBSD

rtsold: fix memory leak in script execution
ClosedPublic

Authored by vangyzen on Feb 23 2022, 4:57 PM.
Tags
None
Referenced Files
F137382861: D34355.id103226.diff
Sat, Nov 22, 11:17 PM
Unknown Object (File)
Thu, Nov 13, 11:37 PM
Unknown Object (File)
Wed, Nov 5, 6:03 AM
Unknown Object (File)
Wed, Nov 5, 6:02 AM
Unknown Object (File)
Wed, Nov 5, 6:02 AM
Unknown Object (File)
Wed, Nov 5, 5:58 AM
Unknown Object (File)
Oct 17 2025, 12:09 PM
Unknown Object (File)
Oct 14 2025, 3:37 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.