dangling pointer problem. There are any references about dangling pointer problem in here. you can look below.