Fixed memory leak in vertex layout allocation