We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 065488e commit b9a1869Copy full SHA for b9a1869
src/memheap.c
@@ -126,8 +126,8 @@ rt_err_t rt_memheap_detach(struct rt_memheap *heap)
126
RT_ASSERT(heap);
127
RT_ASSERT(rt_object_get_type(&heap->parent) == RT_Object_Class_MemHeap);
128
RT_ASSERT(rt_object_is_systemobject(&heap->parent));
129
-
130
- rt_object_detach(&(heap->lock.parent.parent));
+
+ rt_sem_detach(&heap->lock);
131
rt_object_detach(&(heap->parent));
132
133
/* Return a successful completion. */
0 commit comments