Skip to content

Commit

Permalink
Call posix_spawnattr_destroy (generally noop, but by contract...)
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 22, 2024
1 parent f517e25 commit 10988dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions process.c
Original file line number Diff line number Diff line change
Expand Up @@ -4673,6 +4673,8 @@ rb_posix_spawn(struct rb_execarg *eargp)
}

err = posix_spawn(&pid, abspath, NULL, &attr, argv, envp);
posix_spawnattr_destroy(&attr);

if (err) {
rb_sys_fail(abspath);
}
Expand Down

0 comments on commit 10988dc

Please sign in to comment.