Having a pointer to a stack variable is fine, as long as the stack variable lives longer than the closure.
Your comment makes no sense. OP stated that your hypothetical problem isn't even a problem if the developer knows what he is doing, and your take from that is that there are more problems?