diff --git a/bootstrap.conf b/bootstrap.conf index fdab0725f..4d401d2eb 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -220,6 +220,7 @@ gnulib_modules=" posix_spawnattr_setsigdefault posix_spawn_file_actions_addclose posix_spawn_file_actions_adddup2 + posix_spawn_file_actions_destroy posix_spawn_file_actions_init posix_spawnp posixtm diff --git a/src/split.c b/src/split.c index 077e30f0d..3d1509113 100644 --- a/src/split.c +++ b/src/split.c @@ -561,6 +561,9 @@ create (char const *name) error (EXIT_FAILURE, errno, _("failed to run command: \"%s -c %s\""), shell_prog, filter_command); + posix_spawnattr_destroy (&attr); + posix_spawn_file_actions_destroy (&actions); + if (close (fd_pair[0]) != 0) error (EXIT_FAILURE, errno, _("failed to close input pipe")); filter_pid = child_pid;