I'm still getting back into the swing of C++ and I have a question. If I create an orphan, what happens to it?

Code:
class newclass;
newclass = class();
Memory leak, or does C++ have a garbage collector that will take care of that automatically?