* <!-- description --> * @brief This function frees memory previously allocated using the * platform_alloc() function. * * <!-- inputs/outputs --> * @param ptr the pointer returned by platform_alloc(). If ptr is * passed a nullptr, it will be ignored. Attempting to free memory * more than once results in UB. * @param size the number of bytes that were allocated. Note that
| 162 | * may or may not be ignored depending on the platform. |
| 163 | */ |
| 164 | void |
| 165 | platform_free(void const *const ptr, uint64_t const size) NOEXCEPT |
| 166 | { |
| 167 | (void)size; |
| 168 | |
| 169 | if (NULLPTR != ptr) { |
| 170 | ExFreePoolWithTag((void *)ptr, BF_TAG); |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | /** |
| 175 | * <!-- description --> |
nothing calls this directly
no outgoing calls
no test coverage detected