From 4afdf44da2ec0bb9ea5cadde4b0b31b5c0f68c1b Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Thu, 25 Apr 2013 14:22:07 +0800 Subject: add RT_KERNEL_MALLOC/FREE --- src/object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/object.c') 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 -- cgit v1.3.1