does this C++ function produce a memory leak
If, in a function, I have the following code: someClass *x = new object(); x = nullptr; is this a memory leak? Or, is the memory reallocated due to its local scope? Thanks! Not sure how to test this on my own. >Solution : This is a memory leak. It is about the clearest example… Read More does this C++ function produce a memory leak