-g
and 0 or 1 optimization level, -O[01]
valgrind --leak-check=yes app <list of args>
valgrind --leak-check=yes app <list of args> 2>1 | tee output.txt | less
==19182== 40 bytes in 1 blocks are definitely lost in loss record 1 of 1
==19182== at 0x1B8FF5CD: malloc (vg_replace_malloc.c:130)
==19182== by 0x8048385: f (a.c:5)
==19182== by 0x80483AB: main (a.c:11)
-fsanitize=address -static-libasan