X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fprocess%2Fposix_spawn_file_actions_destroy.c;h=3251babb556cae7cd6c81986b286ee7705e8285b;hb=d12f2ed282745db172cbb37b18717ad0b8e3c534;hp=c2501ddfaf60a6941812b09e702c6c06f4bb7298;hpb=c97f0d998cae23472ea30564663a8612dcfb6f83;p=musl diff --git a/src/process/posix_spawn_file_actions_destroy.c b/src/process/posix_spawn_file_actions_destroy.c index c2501ddf..3251babb 100644 --- a/src/process/posix_spawn_file_actions_destroy.c +++ b/src/process/posix_spawn_file_actions_destroy.c @@ -1,9 +1,14 @@ #include #include +#include "fdop.h" 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; }