projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
always add memory streams to stdio open file list
[musl]
/
src
/
process
/
posix_spawn_file_actions_destroy.c
diff --git
a/src/process/posix_spawn_file_actions_destroy.c
b/src/process/posix_spawn_file_actions_destroy.c
index
c2501dd
..
3251bab
100644
(file)
--- a/
src/process/posix_spawn_file_actions_destroy.c
+++ b/
src/process/posix_spawn_file_actions_destroy.c
@@
-1,9
+1,14
@@
#include <spawn.h>
#include <stdlib.h>
#include <spawn.h>
#include <stdlib.h>
+#include "fdop.h"
int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *fa)
{
int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *fa)
{
- // FIXME
- free(fa->__actions);
+ struct fdop *op = fa->__actions, *next;
+ while (op) {
+ next = op->next;
+ free(op);
+ op = next;
+ }
return 0;
}
return 0;
}