summaryrefslogtreecommitdiff
path: root/src/slab.c
diff options
context:
space:
mode:
authorMeco Jianting Man <[email protected]>2021-06-05 13:03:45 +0800
committerGitHub <[email protected]>2021-06-05 13:03:45 +0800
commitbfd8d21e388befc5d971075db5af0ed561abb4f2 (patch)
treed5caabadeb30fc67b3e0efa6dad251617639e096 /src/slab.c
parent02331fd30d1f1ca8c886aac4db6c8c111987913c (diff)
parent28847008171ab7423b6b05b7157d3467f1525fda (diff)
Merge branch 'master' into mutexrevert
Diffstat (limited to 'src/slab.c')
-rw-r--r--src/slab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slab.c b/src/slab.c
index 12ca1a938c..114259002f 100644
--- a/src/slab.c
+++ b/src/slab.c
@@ -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;