There are special restrictions on memory allocation for OCTAL machines. First, you may only allocate memory during ox_create and ox_track. Second, you must use the provided wrappers for allocating memory rather than calling malloc and free directly. They wrappers reside in the OX_API package along with the utility functions formerly in util.h. Call them like this:
m->pkg->alloc(size); m->pkg->free(ptr);
As in the other examples, m is the pointer to your machine structure.