gomo@ciabatta:~/facultad/metodos/tp4/code/source$ valgrind --leak-check=full ./escudo ==18656== Memcheck, a memory error detector. ==18656== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al. ==18656== Using LibVEX rev 1658, a library for dynamic binary translation. ==18656== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP. ==18656== Using valgrind-3.2.1-Debian, a dynamic binary instrumentation framework. ==18656== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al. ==18656== For more details, rerun with: -v ==18656== ==18656== ==18656== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 17 from 1) ==18656== malloc/free: in use at exit: 20,763,648 bytes in 866,580 blocks. ==18656== malloc/free: 11,327,761 allocs, 10,461,181 frees, 278,068,731 bytes allocated. ==18656== For counts of detected errors, rerun with: -v ==18656== searching for pointers to 866,580 not-freed blocks. ==18656== checked 291,332 bytes. ==18656== ==18656== 2,592 (144 direct, 2,448 indirect) bytes in 12 blocks are definitely lost in loss record 1 of 13 ==18656== at 0x4021DC5: operator new(unsigned) (vg_replace_malloc.c:163) ==18656== by 0x804CA1E: EscudoAntiMisiles::EscudoAntiMisiles(std::string) (EscudoMisiles.cpp:41) ==18656== by 0x804925A: EscudoAntiMisilesBruto::EscudoAntiMisilesBruto(std::string) (EscudoMisilesBruto.h:19) ==18656== by 0x8048FEE: main (main.cpp:5) ==18656== ==18656== ==18656== 2,592 (144 direct, 2,448 indirect) bytes in 12 blocks are definitely lost in loss record 4 of 13 ==18656== at 0x4021DC5: operator new(unsigned) (vg_replace_malloc.c:163) ==18656== by 0x804CA54: EscudoAntiMisiles::EscudoAntiMisiles(std::string) (EscudoMisiles.cpp:42) ==18656== by 0x804925A: EscudoAntiMisilesBruto::EscudoAntiMisilesBruto(std::string) (EscudoMisilesBruto.h:19) ==18656== by 0x8048FEE: main (main.cpp:5) ==18656== ==18656== ==18656== 5,184 (288 direct, 4,896 indirect) bytes in 12 blocks are definitely lost in loss record 7 of 13 ==18656== at 0x4021DC5: operator new(unsigned) (vg_replace_malloc.c:163) ==18656== by 0x804CB2C: EscudoAntiMisiles::EscudoAntiMisiles(std::string) (EscudoMisiles.cpp:43) ==18656== by 0x804925A: EscudoAntiMisilesBruto::EscudoAntiMisilesBruto(std::string) (EscudoMisilesBruto.h:19) ==18656== by 0x8048FEE: main (main.cpp:5) ==18656== ==18656== ==18656== 9,041,128 (22,320 direct, 9,018,808 indirect) bytes in 930 blocks are definitely lost in loss record 10 of 13 ==18656== at 0x4021DC5: operator new(unsigned) (vg_replace_malloc.c:163) ==18656== by 0x804AE17: __gnu_cxx::new_allocator >::allocate(unsigned, void const*) (new_allocator.h:88) ==18656== by 0x804AE3A: std::_List_base >::_M_get_node() (stl_list.h:316) ==18656== by 0x804AE4F: std::list >::_M_create_node(Punto const&) (stl_list.h:448) ==18656== by 0x804AEB3: std::list >::insert(std::_List_iterator, Punto const&) (list.tcc:87) ==18656== by 0x804E026: Punto::puntosLindantes(double, double) (Punto.cpp:59) ==18656== by 0x8049771: EscudoAntiMisilesBruto::mejorCirculo(double, int&, int) (EscudoMisilesBruto.cpp:63) ==18656== by 0x8049D5F: EscudoAntiMisilesBruto::proponerSolucion() (EscudoMisilesBruto.cpp:22) ==18656== by 0x8049027: main (main.cpp:6) ==18656== ==18656== ==18656== 11,529,600 (9,528 direct, 11,520,072 indirect) bytes in 1,191 blocks are definitely lost in loss record 11 of 13 ==18656== at 0x4021DC5: operator new(unsigned) (vg_replace_malloc.c:163) ==18656== by 0x804DF1D: Punto::puntosLindantes(double, double) (Punto.cpp:56) ==18656== by 0x8049771: EscudoAntiMisilesBruto::mejorCirculo(double, int&, int) (EscudoMisilesBruto.cpp:63) ==18656== by 0x8049D5F: EscudoAntiMisilesBruto::proponerSolucion() (EscudoMisilesBruto.cpp:22) ==18656== by 0x8049027: main (main.cpp:6) ==18656== ==18656== LEAK SUMMARY: ==18656== definitely lost: 32,424 bytes in 2,157 blocks. ==18656== indirectly lost: 20,548,672 bytes in 856,804 blocks. ==18656== possibly lost: 0 bytes in 0 blocks. ==18656== still reachable: 182,552 bytes in 7,619 blocks. ==18656== suppressed: 0 bytes in 0 blocks. ==18656== Reachable blocks (those to which a pointer was found) are not shown. ==18656== To see them, rerun with: --show-reachable=yes