From 1ec8e49de4c5de50ffe71554e7e600257dec1f4b Mon Sep 17 00:00:00 2001 From: Dusan Cervenka Date: Tue, 17 May 2022 18:56:01 +0200 Subject: [PATCH] Aligned nullptr check for heap3. (#493) Signed-off-by: Cervenka Dusan --- portable/MemMang/heap_3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portable/MemMang/heap_3.c b/portable/MemMang/heap_3.c index 8ed3d1b4f..671705bf5 100644 --- a/portable/MemMang/heap_3.c +++ b/portable/MemMang/heap_3.c @@ -82,7 +82,7 @@ void * pvPortMalloc( size_t xWantedSize ) void vPortFree( void * pv ) { - if( pv ) + if( pv != NULL ) { vTaskSuspendAll(); {