HomeFreeBSD

rtsold: fix memory leak in script execution

Description

rtsold: fix memory leak in script execution

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

Reported by: Coverity
Reviewed by: markj
Fixes: 04e9edb5442826a14616157962361ff81e4a38fe
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D34355

(cherry picked from commit 331b84b5db11b17d1bb0cdbce986efb587a1e5ee)

Details

Provenance
vangyzenAuthored on Feb 23 2022, 4:49 PM
Reviewer
rG04e9edb54428: Capsicumize rtsol(8) and rtsold(8).
Differential Revision
D34355: rtsold: fix memory leak in script execution
Parents
rGb43916e2300a: rtsold: Use correct error in llflags_get()
Branches
Unknown
Tags
Unknown