I'm curious how code such as
will fair against memory leaks? This syntax allocates some memory on the heap and returns a pointer to it correct? However I cannot free() it when I am done with it or it will error. What is the proper way to dispose of elements like this, or are they not a leak?Code:const char * szSomeString = "Hello World";
Cheers