possible memory leak ?
Konstantin Sorokin <[email protected]> Thu, 08 Jul 2004 15:56:15 +0400
| Newsgroups | gmane.comp.lib.libesmtp |
|---|---|
| Message-ID | <[email protected]> |
hi! while running simple test program under valgrind port to freebsd 5.1 I've got following result: ==26375== ERROR SUMMARY: 10 errors from 10 contexts (suppressed: 0 from 0) ==26375== malloc/free: in use at exit: 4121 bytes in 2 blocks. ==26375== malloc/free: 102 allocs, 100 frees, 16949 bytes allocated. ==26375== For counts of detected errors, rerun with: -v ==26375== searching for pointers to 2 not-freed blocks. ==26375== checked 2712276 bytes. ==26375== ==26375== ==26375== 25 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==26375== at 0x3C03BA37: realloc (vg_replace_malloc.c:162) ==26375== by 0x3C0439B1: cat_alloc (in /usr/local/lib/libesmtp.so.6) ==26375== by 0x3C043B35: cat_shrink (in /usr/local/lib/libesmtp.so.6) ==26375== by 0x3C04651E: read_smtp_response (in /usr/local/lib/libesmtp.so.6) ==26375== ==26375== ==26375== 4096 bytes in 1 blocks are still reachable in loss record 2 of 2 ==26375== at 0x3C03B177: malloc (vg_replace_malloc.c:105) ==26375== by 0x3C103DC5: __smakebuf (in /lib/libc.so.5) ==26375== by 0x3C103D3C: __swsetup (in /lib/libc.so.5) ==26375== by 0x3C0F9FD9: __vfprintf (in /lib/libc.so.5) ==26375== ==26375== LEAK SUMMARY: ==26375== definitely lost: 25 bytes in 1 blocks. ==26375== possibly lost: 0 bytes in 0 blocks. ==26375== still reachable: 4096 bytes in 1 blocks. ==26375== suppressed: 0 bytes in 0 blocks. Is there realy leak in read_smtp_response ? I am using libesmtp-1.0.2_2,1 from ports. -- SY, Konstantin