blob: 4074ccf35154549c8b55b6cd0c00c7c46540d62f [file] [log] [blame]
Viet-Trung Luu96b05c12016-01-11 11:26:36 -08001#include <spawn.h>
2#include <stdlib.h>
3#include "fdop.h"
4
George Kulakowski17e3b042016-02-18 15:59:50 -08005int 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;
Viet-Trung Luu96b05c12016-01-11 11:26:36 -080013}