Sign in
fuchsia
/
zircon
/
/
13ee3dc5e4c46bf127977ad28645c47442ec517d
/
.
/
third_party
/
ulib
/
musl
/
src
/
process
/
posix_spawn_file_actions_destroy.c
blob: 2d5f5b0634cd88a90e9e09c74bb79864a46fe48f [
file
] [
log
] [
blame
]
#include
"fdop.h"
#include
<spawn.h>
#include
<stdlib.h>
int
posix_spawn_file_actions_destroy
(
posix_spawn_file_actions_t
*
fa
)
{
struct
fdop
*
op
=
fa
->
__actions
,
*
next
;
while
(
op
)
{
next
=
op
->
next
;
free
(
op
);
op
=
next
;
}
return
0
;
}