Merge "Fix dangling pointer in heapprofd API."