diff --git a/ChangeLog b/ChangeLog index bae9cbadc2..fa71cb8701 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ Bugfix TrinityTonic. #1359. * Fix for redefinition of _WIN32_WINNT to avoid overriding a definition used by user applications. Found and fixed by Fabio Alessandrelli. + * 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 1cfc27ca61..eb555f3326 100644 --- a/library/memory_buffer_alloc.c +++ b/library/memory_buffer_alloc.c @@ -522,7 +522,9 @@ void mbedtls_memory_buffer_alloc_status() 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" );