On Mon, 2007-04-09 at 10:24 -0400, Alan D. Brunelle wrote: > Ensure that all allocated memory was released. > > Lots of minor clean up to help ensure all allocated memory is freed > prior to exit. (Also closed a few files that were left open.) > > # valgrind --leak-check=yes --show-reachable=yes btt -i bp.bin -o btt > -v > ==21322== Memcheck, a memory error detector. > ==21322== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et > al. > ==21322== Using LibVEX rev 1658, a library for dynamic binary > translation. > ==21322== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP. > ==21322== Using valgrind-3.2.1-Debian, a dynamic binary > instrumentation framework. > ==21322== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et > al. > ==21322== For more details, rerun with: -v > ==21322== > Sending range data to btt.dat > Sending stats data to btt.avg > 4581291 traces @ 10.7 Ktps in 426.578804 > seconds tree = |0| > ==21322== > ==21322== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 8 > from 1) > ==21322== malloc/free: in use at exit: 0 bytes in 0 blocks. > ==21322== malloc/free: 11,241,958 allocs, 11,241,958 frees, > 440,381,362 bytes allocated. > ==21322== For counts of detected errors, rerun with: -v > ==21322== All heap blocks were freed -- no leaks are possible. > > Signed-off-by: Alan D. Brunelle <[EMAIL PROTECTED]> > ---
cool. really great to see this. - To unsubscribe from this list: send the line "unsubscribe linux-btrace" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
