Finding Memory Leaks: Difference between revisions
no edit summary
m (→Finding Leaks) |
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: | 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. |