This is a use-after-free because you're taking an unsafe pointer into an array which is immediately deallocated.