Memory not being freed, causing giant memory leak
- by Delan Azabani
In my Unicode library for C++, the ustring class has operator= functions set for char* values and other ustring values. When doing the simple memory leak test:
#include <cstdio>
#include "ucpp"
main() {
ustring a;
for(;;)a="MEMORY";
}
the memory used by the program grows uncontrollably (characteristic of a program with a big memory…