However, it is the interaction of these two functions and using a global pointer variable called namestr that causes both the leak and the dangling pointer.
Irrespective of the precise technology involved, customization approaches break down into two main families: Pointer-based and token-based customization.