g++ -g -o testdump server.c
//显示简略信息
valgrind --tool=memcheck --leak-check=yes ./testdump
//显示内存泄漏检测详细信息
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all ./testdump
g++ -g -o testdump server.c
//显示简略信息
valgrind --tool=memcheck --leak-check=yes ./testdump
//显示内存泄漏检测详细信息
valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all ./testdump