Allocating in the hot path degrades the performance unless you're using an allocator that is designed for that and you are hand-tuning to not need to allocate more memory.
This can be a game or anything with a hot path you care about, doesn't have to be deployed on an embedded device.