Fixed dangling pointer.