fixed malloc stack buffering, nice speed-up in compilations :)
small fix in malloc