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

注释错误,此处的场景是zone满了,不是空了
This commit is contained in:
Bernard Xiong 2021-05-21 23:06:11 +08:00 committed by GitHub
commit 19de22f485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;