未验证 提交 19de22f4 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #4695 from wfwzhxd/wfwzhxd-patch-1

注释错误,此处的场景是zone满了,不是空了
......@@ -540,7 +540,7 @@ void *rt_malloc(rt_size_t size)
{
RT_ASSERT(z->z_nfree > 0);
/* Remove us from the zone_array[] when we become empty */
/* Remove us from the zone_array[] when we become full */
if (--z->z_nfree == 0)
{
zone_array[zi] = z->z_next;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册