==22594== Memcheck, a memory error detector ==22594== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==22594== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==22594== Command: ./leaktest ==22594== ==22594== ==22594== HEAP SUMMARY: ==22594== in use at exit: 82,440 bytes in 18 blocks ==22594== total heap usage: 965 allocs, 947 frees, 249,238 bytes allocated ==22594== ==22594== 26 bytes in 1 blocks are definitely lost in loss record 6 of 18 ==22594== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==22594== by 0x5E7F6EA: cln::xmalloc(unsigned long) (cl_malloc.cc:28) ==22594== by 0x5E8A69D: cln::cl_make_heap_string(char const*) (cl_st_make1.cc:20) ==22594== by 0x5E88F14: cl_string (string.h:83) ==22594== by 0x5E88F14: cl_print_univpoly_flags (output.h:65) ==22594== by 0x5E88F14: cln::cl_prin_globals_init_helper::cl_prin_globals_init_helper() (output.h:68) ==22594== by 0x5E63025: __static_initialization_and_destruction_0 (io.h:78) ==22594== by 0x5E63025: _GLOBAL__sub_I_cl_as_exception.cc (cl_as_exception.cc:44) ==22594== by 0x40104E9: call_init.part.0 (dl-init.c:72) ==22594== by 0x40105FA: call_init (dl-init.c:30) ==22594== by 0x40105FA: _dl_init (dl-init.c:120) ==22594== by 0x4000CF9: ??? (in /lib/x86_64-linux-gnu/ld-2.23.so) ==22594== ==22594== 48 bytes in 1 blocks are definitely lost in loss record 13 of 18 ==22594== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==22594== by 0x500772C: dynallocate (basic.h:336) ==22594== by 0x500772C: GiNaC::operator==(GiNaC::ex const&, GiNaC::ex const&) (operators.cpp:250) ==22594== by 0x402FD6: main (leaktest.cpp:5) ==22594== ==22594== LEAK SUMMARY: ==22594== definitely lost: 74 bytes in 2 blocks ==22594== indirectly lost: 0 bytes in 0 blocks ==22594== possibly lost: 0 bytes in 0 blocks ==22594== still reachable: 82,366 bytes in 16 blocks ==22594== suppressed: 0 bytes in 0 blocks ==22594== Reachable blocks (those to which a pointer was found) are not shown. ==22594== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==22594== ==22594== For counts of detected and suppressed errors, rerun with: -v ==22594== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)