commit | 491a3fe0578b570d823c199d367c73c36e4063c5 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Feb 05 12:08:47 2015 +0100 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Feb 16 17:28:11 2015 +0000 |
tree | f47f8bb716ed9ed80033dc228cf001f7e6ead01d | |
parent | 7defc7759d2bd47a692b1d607e210b1ca5be135b [diff] [blame] |
Fix compile error in memory_buffer_alloc_selftest
diff --git a/library/memory_buffer_alloc.c b/library/memory_buffer_alloc.c index 48cda6c..7371008 100644 --- a/library/memory_buffer_alloc.c +++ b/library/memory_buffer_alloc.c
@@ -611,7 +611,10 @@ 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 || (void *) heap.first != (void *) heap.buf ) {