(size: int)
| 40 | allocations = [] |
| 41 | |
| 42 | def __heap_alloc(size: int) -> int: |
| 43 | address = ql.os.heap.alloc(size) |
| 44 | allocations.append(address) |
| 45 | |
| 46 | return address |
| 47 | |
| 48 | def __free_all(allocations: Iterable[int]) -> None: |
| 49 | for address in allocations: |