1 #include "fdop.h"
2 #include <spawn.h>
3 #include <stdlib.h>
4 
posix_spawn_file_actions_destroy(posix_spawn_file_actions_t * fa)5 int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t* fa) {
6     struct fdop *op = fa->__actions, *next;
7     while (op) {
8         next = op->next;
9         free(op);
10         op = next;
11     }
12     return 0;
13 }
14