Heap manager doesn't free small blocks
Original Reporter info from Mantis: ccrause @ccrause
-
Reporter name: Christo Crause
Original Reporter info from Mantis: ccrause @ccrause
- Reporter name: Christo Crause
Description:
In heapmgr the minimum block size allocation is capped at MinBlock in SysGetMem. In SysFreeMem the allocated block size to be freed is calculated based on an aligned size, but this is not capped at MinBlock size, hence the call to InternalFreeMem fails to locate the block to be freed.
Attached a patch to fix this. The patch is for freertos, but should probably also be applied to the embedded unit.
Mantis conversion info:
- Mantis ID: 37195
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 45633 (#6698f6c5)