summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_garbage.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sched_garbage.c')
-rwxr-xr-xnuttx/sched/sched_garbage.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nuttx/sched/sched_garbage.c b/nuttx/sched/sched_garbage.c
index 7c9f434a1..946198ede 100755
--- a/nuttx/sched/sched_garbage.c
+++ b/nuttx/sched/sched_garbage.c
@@ -38,8 +38,7 @@
****************************************************************************/
#include <nuttx/config.h>
-
-#include <stdlib.h>
+#include <nuttx/kmalloc.h>
#include "os_internal.h"
@@ -111,7 +110,7 @@ void sched_garbagecollection(void)
if (address)
{
- free(address);
+ kfree(address);
}
}
}