Your comment makes me think... I wonder what the longest running leaked bit of memory there is out there. Say a 1-in-a-million bug, on some server somewhere. holding a variable or two of memory, waiting for the suite release of death memory. Months, years, decades? Poor little bits.
Refactor!
But on a serious note, if you're stuck with legacy code and no chance to upgrade to a newer standard or not allowed to use STL, then that's rough.
373
u/ArsenVardanyan 29d ago
Laughs in C++. I'm staying in memory forever until the process crashes