diff options
Diffstat (limited to 'nuttx/libc/spawn/lib_psfa_destroy.c')
-rw-r--r-- | nuttx/libc/spawn/lib_psfa_destroy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/libc/spawn/lib_psfa_destroy.c b/nuttx/libc/spawn/lib_psfa_destroy.c index a21886645..d80dbd978 100644 --- a/nuttx/libc/spawn/lib_psfa_destroy.c +++ b/nuttx/libc/spawn/lib_psfa_destroy.c @@ -45,6 +45,8 @@ #include <nuttx/spawn.h> +#include "lib_internal.h" + /**************************************************************************** * Global Functions ****************************************************************************/ @@ -86,7 +88,7 @@ int posix_spawn_file_actions_destroy(FAR posix_spawn_file_actions_t *file_action /* Get the pointer to the next element before destroying the current one */ next = curr->flink; - free(curr); + lib_free(curr); } /* Mark the list empty */ |