Removes a heap.
| Item | Description |
|---|---|
| heap | The heap to destroy. |
| flags | Must be zero. |
This service removes a heap and its internal resources from the system. There must be no outstanding allocations when a heap is destroyed.
The heap_destroy kernel service can be called from the process environment only.
| Item | Description |
|---|---|
| EINVAL_HEAP_DESTROY | The heap parameter is not recognizable. |
| EBUSY_HEAP_DESTROY | The heap is still in use. |