releaseAll method
void
releaseAll()
Frees every allocation. Idempotent.
Implementation
void releaseAll() {
if (_released) return;
_released = true;
for (final p in _allocations) {
module.free(p);
}
_allocations.clear();
}