Memory of old array freed