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, 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
Unknown Object (File)
Mon, Apr 27, 10:08 PM
Unknown Object (File)
Sun, Apr 26, 2:37 AM
Unknown Object (File)
Sat, Apr 25, 11:55 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.