https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115461
--- Comment #6 from Ilya Leoshkevich <iii at linux dot ibm.com> --- Forgot to add: since the runtime is shared, this observation applies to both GCC and LLVM. $ gcc k.c -fsanitize=leak; ./a.out 0x508000000000 $ LSAN_OPTIONS=use_stacks=0 ./a.out 0x508000000000 ================================================================= ==948446==ERROR: LeakSanitizer: detected memory leaks Direct leak of 123 byte(s) in 1 object(s) allocated from: #0 0x3fff7a16caf in malloc (/lib64/liblsan.so.0+0x16caf) (BuildId: 58eab4a667c0b1f8c0ff7fe7ac931e0eaa86cd5e) #1 0x1001219 in main (/tmp/a.out+0x1001219) (BuildId: 277d8d1498d2a3f76a547ae04af127173f8a2c76) SUMMARY: LeakSanitizer: 123 byte(s) leaked in 1 allocation(s).