summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2013-04-25 14:22:07 +0800
committerBernard Xiong <[email protected]>2013-04-25 14:22:07 +0800
commit4afdf44da2ec0bb9ea5cadde4b0b31b5c0f68c1b (patch)
treefb544b8d2b2861f576a7977806ec36baba280f71 /src/object.c
parent608bf2cb3deda4b682aa1a9a9f2a71a4c0416a48 (diff)
add RT_KERNEL_MALLOC/FREE
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object.c b/src/object.c
index add84bf3be..24cfa7b944 100644
--- a/src/object.c
+++ b/src/object.c
@@ -281,7 +281,7 @@ rt_object_t rt_object_allocate(enum rt_object_class_type type, const char *name)
information = &rt_object_container[type];
#endif
- object = (struct rt_object *)rt_malloc(information->object_size);
+ object = (struct rt_object *)RT_KERNEL_MALLOC(information->object_size);
if (object == RT_NULL)
{
/* no memory can be allocated */
@@ -353,7 +353,7 @@ void rt_object_delete(rt_object_t object)
#endif
/* free the memory of object */
- rt_free(object);
+ RT_KERNEL_FREE(object);
}
#endif