The only way I know of to reduce possibility of memory leakage is to just look over your code vigorously. Logic errors are hard to systematically eliminate.
EDIT: You can always use wrappers to a degree. It just helps memory management and helps prevent you from making the errors that cause memory to not be freed up.
|