File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ void * pvPortMalloc( size_t xWantedSize )
308
308
/* The block is being returned - it is allocated and owned
309
309
* by the application and has no "next" block. */
310
310
heapALLOCATE_BLOCK ( pxBlock );
311
- pxBlock -> pxNextFreeBlock = NULL ;
311
+ pxBlock -> pxNextFreeBlock = heapPROTECT_BLOCK_POINTER ( NULL ) ;
312
312
xNumberOfSuccessfulAllocations ++ ;
313
313
}
314
314
else
@@ -367,11 +367,11 @@ void vPortFree( void * pv )
367
367
368
368
heapVALIDATE_BLOCK_POINTER ( pxLink );
369
369
configASSERT ( heapBLOCK_IS_ALLOCATED ( pxLink ) != 0 );
370
- configASSERT ( pxLink -> pxNextFreeBlock == NULL );
370
+ configASSERT ( pxLink -> pxNextFreeBlock == heapPROTECT_BLOCK_POINTER ( NULL ) );
371
371
372
372
if ( heapBLOCK_IS_ALLOCATED ( pxLink ) != 0 )
373
373
{
374
- if ( pxLink -> pxNextFreeBlock == NULL )
374
+ if ( pxLink -> pxNextFreeBlock == heapPROTECT_BLOCK_POINTER ( NULL ) )
375
375
{
376
376
/* The block is being returned to the heap - it is no longer
377
377
* allocated. */
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ void * pvPortMalloc( size_t xWantedSize )
336
336
/* The block is being returned - it is allocated and owned
337
337
* by the application and has no "next" block. */
338
338
heapALLOCATE_BLOCK ( pxBlock );
339
- pxBlock -> pxNextFreeBlock = NULL ;
339
+ pxBlock -> pxNextFreeBlock = heapPROTECT_BLOCK_POINTER ( NULL ) ;
340
340
xNumberOfSuccessfulAllocations ++ ;
341
341
}
342
342
else
@@ -395,11 +395,11 @@ void vPortFree( void * pv )
395
395
396
396
heapVALIDATE_BLOCK_POINTER ( pxLink );
397
397
configASSERT ( heapBLOCK_IS_ALLOCATED ( pxLink ) != 0 );
398
- configASSERT ( pxLink -> pxNextFreeBlock == NULL );
398
+ configASSERT ( pxLink -> pxNextFreeBlock == heapPROTECT_BLOCK_POINTER ( NULL ) );
399
399
400
400
if ( heapBLOCK_IS_ALLOCATED ( pxLink ) != 0 )
401
401
{
402
- if ( pxLink -> pxNextFreeBlock == NULL )
402
+ if ( pxLink -> pxNextFreeBlock == heapPROTECT_BLOCK_POINTER ( NULL ) )
403
403
{
404
404
/* The block is being returned to the heap - it is no longer
405
405
* allocated. */
You can’t perform that action at this time.
0 commit comments