Quote:
And with temporary leakage I mean the allocated memory set aside for this const char*, which potentially doesn’t get freed until the program terminates.
Yeah, if you want to call that a memory leak. It's not like the compiler allocates new memory for the string constant. If it's the same string, it'll probably have the same address and be reused everywhere you use the constant or a pointer to the constant. So even if you use the string constant in a thousand places, it all uses the same memory.