[root@urano filter_ptBR]# valgrind --leak-check=yes php foo.php ==2677== Memcheck, a memory error detector. ==2677== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==2677== Using LibVEX rev 1471, a library for dynamic binary translation. ==2677== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP. ==2677== Using valgrind-3.1.0, a dynamic binary instrumentation framework. ==2677== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==2677== For more details, rerun with: -v ==2677== X-Powered-By: PHP/5.1.4 Content-type: text/html Total: 0.1327998638 Total: 0.0071339607 ==2677== ==2677== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 19 from 1) ==2677== malloc/free: in use at exit: 0 bytes in 0 blocks. ==2677== malloc/free: 10,000 allocs, 10,000 frees, 966,477 bytes allocated. ==2677== For counts of detected errors, rerun with: -v ==2677== No malloc'd blocks -- no leaks are possible.