* <!-- description --> * @brief Releases a previously allocated span_t that was allocated * using the alloc_mk_stack function. * * <!-- inputs/outputs --> * @param pmut_stack the span_t to free. */
| 38 | * @param pmut_stack the span_t to free. |
| 39 | */ |
| 40 | void |
| 41 | free_mk_stack(struct span_t *const pmut_stack) NOEXCEPT |
| 42 | { |
| 43 | platform_expects(NULLPTR != pmut_stack); |
| 44 | |
| 45 | platform_free(pmut_stack->addr, pmut_stack->size); |
| 46 | platform_memset(pmut_stack, ((uint8_t)0), sizeof(struct span_t)); |
| 47 | } |