This is common in embedded systems, where there is limited memory and no OS to run garbage collection.
Garbage collection in C++?