summaryrefslogtreecommitdiff
path: root/src/mem.c
diff options
context:
space:
mode:
authorMeco Jianting Man <[email protected]>2021-03-09 21:11:14 +0800
committerGitHub <[email protected]>2021-03-09 21:11:14 +0800
commit6f32f7cad53d5142ae3057e7cbca1884995d6631 (patch)
treefe7c983aeddf2c8064b071c5f997c8405b97fead /src/mem.c
parentce86058201432e865b8d7c4096b3675642a43a42 (diff)
parentd9b8984398d1c424a78a840d9159399145f986a0 (diff)
Merge pull request #25 from RT-Thread/master
pr
Diffstat (limited to 'src/mem.c')
-rw-r--r--src/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem.c b/src/mem.c
index c03c8b3452..ac0d27f2c3 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -489,7 +489,7 @@ void *rt_realloc(void *rmem, rt_size_t newsize)
{
((struct heap_mem *)&heap_ptr[mem2->next])->prev = ptr2;
}
-
+
if (mem2 < lfree)
{
/* the splited struct is now the lowest */