| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 
 | ==19959== Memcheck, a memory error detector
==19959== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==19959== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info
==19959== Command: ./test
==19959== 
File written.
Object loaded.
==19959== Invalid free() / delete / delete[]
==19959==    at 0x402454D: operator delete(void*) (vg_replace_malloc.c:346)
==19959==    by 0x8049A46: __gnu_cxx::new_allocator<double>::deallocate(double*, unsigned int) (new_allocator.h:95)
==19959==    by 0x8049598: std::_Vector_base<double, std::allocator<double> >::_M_deallocate(double*, unsigned int) (stl_vector.h:146)
==19959==    by 0x8049409: std::_Vector_base<double, std::allocator<double> >::~_Vector_base() (stl_vector.h:132)
==19959==    by 0x80490C4: std::vector<double, std::allocator<double> >::~vector() (stl_vector.h:313)
==19959==    by 0x8049074: myTestClass::~myTestClass() (MDAVSphericalHarmonicsSeriesSaveTest.cpp:10)
==19959==    by 0x8048F29: main (MDAVSphericalHarmonicsSeriesSaveTest.cpp:42)
==19959==  Address 0x42be028 is 0 bytes inside a block of size 8 free'd
==19959==    at 0x402454D: operator delete(void*) (vg_replace_malloc.c:346)
==19959==    by 0x8049A46: __gnu_cxx::new_allocator<double>::deallocate(double*, unsigned int) (new_allocator.h:95)
==19959==    by 0x8049598: std::_Vector_base<double, std::allocator<double> >::_M_deallocate(double*, unsigned int) (stl_vector.h:146)
==19959==    by 0x8049409: std::_Vector_base<double, std::allocator<double> >::~_Vector_base() (stl_vector.h:132)
==19959==    by 0x80490C4: std::vector<double, std::allocator<double> >::~vector() (stl_vector.h:313)
==19959==    by 0x8049074: myTestClass::~myTestClass() (MDAVSphericalHarmonicsSeriesSaveTest.cpp:10)
==19959==    by 0x8048EB7: main (MDAVSphericalHarmonicsSeriesSaveTest.cpp:42)
==19959== 
==19959== 
==19959== HEAP SUMMARY:
==19959==     in use at exit: 8 bytes in 1 blocks
==19959==   total heap usage: 7 allocs, 7 frees, 17,129 bytes allocated
==19959== 
==19959== 8 bytes in 1 blocks are definitely lost in loss record 1 of 1
==19959==    at 0x4025390: operator new(unsigned int) (vg_replace_malloc.c:214)
==19959==    by 0x8049CF1: __gnu_cxx::new_allocator<double>::allocate(unsigned int, void const*) (new_allocator.h:89)
==19959==    by 0x8049A0B: std::_Vector_base<double, std::allocator<double> >::_M_allocate(unsigned int) (stl_vector.h:140)
==19959==    by 0x80497CC: std::vector<double, std::allocator<double> >::_M_insert_aux(__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >, double const&) (vector.tcc:322)
==19959==    by 0x80493A6: std::vector<double, std::allocator<double> >::push_back(double const&) (stl_vector.h:741)
==19959==    by 0x804903E: myTestClass::myTestClass() (MDAVSphericalHarmonicsSeriesSaveTest.cpp:14)
==19959==    by 0x8048E27: main (MDAVSphericalHarmonicsSeriesSaveTest.cpp:34)
==19959== 
==19959== LEAK SUMMARY:
==19959==    definitely lost: 8 bytes in 1 blocks
==19959==    indirectly lost: 0 bytes in 0 blocks
==19959==      possibly lost: 0 bytes in 0 blocks
==19959==    still reachable: 0 bytes in 0 blocks
==19959==         suppressed: 0 bytes in 0 blocks
==19959== 
==19959== For counts of detected and suppressed errors, rerun with: -v
==19959== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 17 from 6)
 |