I cannot imagine a bug in sys_malloc or sys_free. Many users have used this instruction without any problems before - including me. If your game crashes when using sys_malloc and works with malloc I'd suspect the other code that crashes. Maybe you're overwriting memory? Why don't you post the code that crashes so we can have a look at it?


Always learn from history, to be sure you make the same mistakes again...