File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1409,11 +1409,11 @@ static void _umm_free( void *ptr ) {
1409
1409
1410
1410
c = (((char *)ptr)-(char *)(&(umm_heap[0 ])))/sizeof (umm_block);
1411
1411
1412
+ DBG_LOG_DEBUG ( " Freeing block %6d\n " , c );
1413
+
1412
1414
/* Protect the critical section... */
1413
1415
UMM_CRITICAL_ENTRY (id_free);
1414
1416
1415
- DBG_LOG_DEBUG ( " Freeing block %6d\n " , c );
1416
-
1417
1417
/* Update dynamic Free Block count */
1418
1418
ummHeapFreeBlocks += (UMM_NBLOCK (c) - c);
1419
1419
@@ -1591,13 +1591,13 @@ static void *_umm_malloc( size_t size ) {
1591
1591
ummHeapFreeBlocks -= blocks;
1592
1592
1593
1593
} else {
1594
+ /* Release the critical section... */
1595
+ UMM_CRITICAL_EXIT (id_malloc);
1596
+
1594
1597
/* Out of memory */
1595
1598
1596
1599
DBG_LOG_DEBUG ( " Can't allocate %5d blocks\n " , blocks );
1597
1600
1598
- /* Release the critical section... */
1599
- UMM_CRITICAL_EXIT (id_malloc);
1600
-
1601
1601
return ( (void *)NULL );
1602
1602
}
1603
1603
You can’t perform that action at this time.
0 commit comments