summaryrefslogtreecommitdiff
path: root/src/memheap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memheap.c')
-rw-r--r--src/memheap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memheap.c b/src/memheap.c
index 26d7ecfa3e..0df9ed41ed 100644
--- a/src/memheap.c
+++ b/src/memheap.c
@@ -312,7 +312,7 @@ void *rt_memheap_alloc(struct rt_memheap *heap, rt_size_t size)
#ifdef RT_USING_MEMTRACE
if (rt_thread_self())
- rt_memcpy(header_ptr->owner_thread_name, rt_thread_self()->name, sizeof(header_ptr->owner_thread_name));
+ rt_memcpy(header_ptr->owner_thread_name, rt_thread_self()->parent.name, sizeof(header_ptr->owner_thread_name));
else
rt_memcpy(header_ptr->owner_thread_name, "NONE", sizeof(header_ptr->owner_thread_name));
#endif /* RT_USING_MEMTRACE */