diff --git a/ChangeLog b/ChangeLog index 4fbdb3d25..b2605e92a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,7 @@ API Changes Bugfix * Fix an issue with MicroBlaze support in bn_mul.h which was causing the build to fail. Found by zv-io. Fixes #1651. + * Fix braces in mbedtls_memory_buffer_alloc_status(). Found by sbranden, #552. Changes * Support TLS testing in out-of-source builds using cmake. Fixes #1193. diff --git a/library/memory_buffer_alloc.c b/library/memory_buffer_alloc.c index ceaeda1e7..51ea7c41d 100644 --- a/library/memory_buffer_alloc.c +++ b/library/memory_buffer_alloc.c @@ -518,7 +518,9 @@ void mbedtls_memory_buffer_alloc_status( void ) heap.alloc_count, heap.free_count ); if( heap.first->next == NULL ) + { mbedtls_fprintf( stderr, "All memory de-allocated in stack buffer\n" ); + } else { mbedtls_fprintf( stderr, "Memory currently allocated:\n" );