http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59061
--- Comment #17 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> --- (In reply to Sergey Matveev from comment #16) > > Under the current behavior -fsanitize=address,leak is equivalent to > -fsanitize=address. > > We've considered other options, such as making -fsanitize=leak change the > default run-time behavior (currently the ASan runtime always has leak > detection runtime-disabled by default, whereas the standalone LSan runtime > always has it enabled). But we never arrived at anything sensible. >From my 'user perspective' it would be great if -fsanitize=leak would perform leak checking by default (i.e. remove the requirement to export ASAN_OPTIONS="detect_leaks=1"). At that point it would be natural to expect that -fsanitize=address,leak just enables the leak checking by default, while -fsanitize=address might not. Out of curiosity, is there a runtime performance difference in using -llsan or -lasan for leak checking only ?