Skip to content

Commit 4789922

Browse files
committed
Call posix_spawnattr_destroy (generally noop, but by contract...)
1 parent 03b149d commit 4789922

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

process.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4675,6 +4675,8 @@ rb_posix_spawn(struct rb_execarg *eargp)
46754675
}
46764676

46774677
err = posix_spawn(&pid, abspath, NULL, &attr, argv, envp);
4678+
posix_spawnattr_destroy(&attr);
4679+
46784680
if (err) {
46794681
rb_sys_fail(abspath);
46804682
}

0 commit comments

Comments
 (0)