valgrind 看内存泄漏

1.valgrind --tool=memcheck --leak-check=full --show-reachable=yes  --trace-children=yes  --undef-value-errors=no --track-fds=yes --num-callers=50  /usr/local/bin/spawn-fcgi -n -a 127.0.0.1 -p 31004 -f /home/test -F 1

2.请求后ctrl+c 关闭valgrind,会打印出内存泄漏的地方




猜你喜欢

转载自blog.csdn.net/liu0808/article/details/80169182