Removed uses of alloca.
Nevermind. That was an incredibly stupid idea.
Loads of memory fixes.