hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit ff71c39401e053a56543840a536d37efaff96fc0
parent 6aded183166b764a557b324d1dfd0bc58e3db08b
Author: Joe Finney <me@spxtr.net>
Date:   Tue, 21 Mar 2023 16:55:11 -0700

Free cmd.files in os::exec::finish.

Previously leaked memory if you used addfiles.

Signed-off-by: Joe Finney <me@spxtr.net>

Diffstat:
Mos/exec/cmd.ha | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/os/exec/cmd.ha b/os/exec/cmd.ha @@ -66,6 +66,7 @@ export fn setname(cmd: *command, name: str) void = { export fn finish(cmd: *command) void = { platform_finish(cmd); free(cmd.argv); + free(cmd.files); strings::freeall(cmd.env); };