fix memory static problem
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1232 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
74bb729462
commit
aa1a78082f
|
@ -839,7 +839,7 @@ void rt_free(void *ptr)
|
||||||
kup->size = 0;
|
kup->size = 0;
|
||||||
|
|
||||||
#ifdef RT_MEM_STATS
|
#ifdef RT_MEM_STATS
|
||||||
used_mem -= size;
|
used_mem -= size * RT_MM_PAGE_SIZE;
|
||||||
#endif
|
#endif
|
||||||
rt_sem_release(&heap_sem);
|
rt_sem_release(&heap_sem);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue