Fixed a stupid malloc to occur just once.