BTW, after start nginx by valgrind it won't print memory leaks report until we stop nginx by $ objs/nginx -c work-dir/test.conf -p work-dir Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260692,260693#msg-260693