This snippet monitors your memory through a standard integer inserted into your memory allocation function, whether that be alloc_mem, or Create, it will monitor the overall amount of memory used, and when it gets too high, it will cause the mud to reboot. This will ensure that if you have a memory leak, that it doesn't cause your system to lock up.