(core) started work on hardening memory allocations, first up, malloc/free in video wrapped to platform/ stubs.