Download a trial copy of IBM Rational PurifyPlus or Compuware Numega, install it, run your program and check for problems.
It's faster and safer than modifying your program.