Finding Memory Leaks: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 38: Line 38:
The Address Sanitizer is now built in to the Octave executable.  The behavior of the Sanitizer can be controlled with the environment variable '''ASAN_OPTIONS'''.  For example, this is a useful value of ASAN_OPTIONS:
The Address Sanitizer is now built in to the Octave executable.  The behavior of the Sanitizer can be controlled with the environment variable '''ASAN_OPTIONS'''.  For example, this is a useful value of ASAN_OPTIONS:


   setenv ASAN_OPTIONS "leak_check_at_exit=0:verbose=1"
   setenv ASAN_OPTIONS "leak_check_at_exit=0:verbosity=1"


This stops reporting on any leaks at the end of the program, as those will be cleaned up by the operating system anyways when the process itself is destroyed.
This stops reporting on any leaks at the end of the program, as those will be cleaned up by the operating system anyways when the process itself is destroyed.