summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_inoderemove.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/fs/fs_inoderemove.c')
-rw-r--r--nuttx/fs/fs_inoderemove.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/fs/fs_inoderemove.c b/nuttx/fs/fs_inoderemove.c
index ff8dcc2ee..cdc61f66a 100644
--- a/nuttx/fs/fs_inoderemove.c
+++ b/nuttx/fs/fs_inoderemove.c
@@ -39,8 +39,9 @@
#include <nuttx/config.h>
-#include <stdlib.h>
#include <errno.h>
+
+#include <nuttx/kmalloc.h>
#include <nuttx/fs.h>
#include "fs_internal.h"
@@ -144,7 +145,7 @@ int inode_remove(const char *path)
/* And delete it now -- recursively to delete all of its children */
inode_free(node->i_child);
- free(node);
+ kfree(node);
return OK;
}
}