I am looking at c++ code that does this, and wondering if it leaks memory, invokes UB but just happens to work on this compiler, or is an idiom properly supported by the lan