| Viet-Trung Luu | 96b05c1 | 2016-01-11 11:26:36 -0800 | [diff] [blame] | 1 | #include <spawn.h> |
| 2 | #include <stdlib.h> | ||||
| 3 | #include "fdop.h" | ||||
| 4 | |||||
| George Kulakowski | 17e3b04 | 2016-02-18 15:59:50 -0800 | [diff] [blame] | 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; | ||||
| Viet-Trung Luu | 96b05c1 | 2016-01-11 11:26:36 -0800 | [diff] [blame] | 13 | } |