What's wrong with this?

Started by
10 comments, last by BradDaBug 21 years, 4 months ago
Release everything you allocate. It doesn''t matter whether the OS cleans up at the end or not - you''re essentially losing a valuable resource and eventually you may run out, causing your program, other programs, or even your OS to crash.

[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost | Asking Questions | Organising code files | My stuff ]
Advertisement
Actually, I believe in Windows 9X, if you leak memory, it can''t be accessed by the OS until you restart.

I think....

This topic is closed to new replies.

Advertisement