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.
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.