| 225 | } |
| 226 | |
| 227 | void StompFree(void* addr) |
| 228 | { |
| 229 | if (gSA_CritSect == NULL) |
| 230 | StompInit(); |
| 231 | |
| 232 | AutoCrit autoCrit(*gSA_CritSect); |
| 233 | |
| 234 | bool leaveAllocated = true; |
| 235 | for (auto& alloc : *gAllocRanges) |
| 236 | { |
| 237 | if (alloc.Free(addr, leaveAllocated)) |
| 238 | return; |
| 239 | } |
| 240 | |
| 241 | free(addr); |
| 242 | //assert("Invalid address" == 0); |
| 243 | } |
| 244 | |
| 245 | ////////////////////////////////////////////////////////////////////////// |
| 246 |
no test coverage detected