Fix compile error in memory_buffer_alloc_selftest
This commit is contained in:
parent
7defc7759d
commit
491a3fe057
1 changed files with 4 additions and 1 deletions
|
@ -611,7 +611,10 @@ static int check_pointer( void *p )
|
||||||
|
|
||||||
static int check_all_free( )
|
static int check_all_free( )
|
||||||
{
|
{
|
||||||
if( heap.current_alloc_size != 0 ||
|
if(
|
||||||
|
#if defined(POLARSSL_MEMORY_DEBUG)
|
||||||
|
heap.total_used != 0 ||
|
||||||
|
#endif
|
||||||
heap.first != heap.first_free ||
|
heap.first != heap.first_free ||
|
||||||
(void *) heap.first != (void *) heap.buf )
|
(void *) heap.first != (void *) heap.buf )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue