#include #include #include "fdop.h" int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *fa) { posix_spawn_file_actions_t *next, *p = fa->__actions; for (p = p->__actions; p != fa->__actions; p = next) { next = p->__actions; free(p); } if (p != fa) free(p); return 0; }