memory not restored?

BlitzMax Forums/BlitzMax Programming/memory not restored?

Yes. It is up to the garbage collector as to when memory is freed. It could be the first call to FlushMem, it could be never.

Oh, and MemAlloced() chews up around 20 bytes I think it is. But that's recoverable by the GC as well...