From b11de306c424c0206a7c4eff1031286236f901d2 Mon Sep 17 00:00:00 2001 From: Darryl Green Date: Mon, 27 Nov 2017 17:12:14 +0000 Subject: [PATCH] Fix braces in mbedtls_memory_buffer_alloc_status() --- ChangeLog | 1 + library/memory_buffer_alloc.c | 2 ++ 2 files changed, 3 insertions(+) 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" );