usually what you do
clang program.c -c -o program.o clang program.o -o program
compile and detect memory leak
clang program.c \ -fsanitize=address,leak,undefined \ program