[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Confuse-devel] memory leak
From: |
pwi |
Subject: |
[Confuse-devel] memory leak |
Date: |
Thu, 09 Aug 2007 16:35:18 +0200 |
hi,
there seems to be a small memory leak in libconfuse 2.5. I just started the
simple example from the libconfuse homepage and valgrid tells:
==10833==
==10833== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 11 from 1)
--10833--
--10833-- supp: 11 Debian libc6 (2.3.x) stripped dynamic linker
==10833== malloc/free: in use at exit: 14 bytes in 2 blocks.
==10833== malloc/free: 37 allocs, 35 frees, 19,554 bytes allocated.
==10833==
==10833== searching for pointers to 2 not-freed blocks.
==10833== checked 59,608 bytes.
==10833==
==10833== 14 bytes in 2 blocks are definitely lost in loss record 1 of 1
==10833== at 0x401D38B: malloc (vg_replace_malloc.c:149)
==10833== by 0x40970BF: strdup (in /lib/tls/i686/cmov/libc-2.3.6.so)
==10833== by 0x804B875: cfg_setopt (confuse.c:658)
==10833== by 0x804AF54: cfg_parse_internal (confuse.c:890)
==10833== by 0x804B256: cfg_parse_fp (confuse.c:1035)
==10833== by 0x804B33A: cfg_parse (confuse.c:1054)
==10833== by 0x8048EE8: main (in /home/user/confuse-test/a.out)
==10833==
==10833== LEAK SUMMARY:
==10833== definitely lost: 14 bytes in 2 blocks.
==10833== possibly lost: 0 bytes in 0 blocks.
==10833== still reachable: 0 bytes in 0 blocks.
==10833== suppressed: 0 bytes in 0 blocks.
==10833== Reachable blocks (those to which a pointer was found) are not shown.
==10833== To see them, rerun with: --show-reachable=yes
--10833-- memcheck: sanity checks: 0 cheap, 1 expensive
--10833-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--10833-- memcheck: auxmaps: 0 searches, 0 comparisons
--10833-- memcheck: SMs: n_issued = 10 (160k, 0M)
--10833-- memcheck: SMs: n_deissued = 0 (0k, 0M)
--10833-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--10833-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--10833-- memcheck: SMs: max_defined = 37 (592k, 0M)
--10833-- memcheck: SMs: max_non_DSM = 10 (160k, 0M)
--10833-- memcheck: max sec V bit nodes: 5 (0k, 0M)
--10833-- memcheck: set_sec_vbits8 calls: 9 (new: 5, updates: 4)
--10833-- memcheck: max shadow mem size: 464k, 0M
--10833-- translate: fast SP updates identified: 2,884 ( 89.7%)
--10833-- translate: generic_known SP updates identified: 190 ( 5.9%)
--10833-- translate: generic_unknown SP updates identified: 141 ( 4.3%)
--10833-- tt/tc: 6,012 tt lookups requiring 6,113 probes
--10833-- tt/tc: 6,012 fast-cache updates, 2 flushes
--10833-- transtab: new 2,996 (62,866 -> 1,053,277; ratio 167:10) [0
scs]
--10833-- transtab: dumped 0 (0 -> ??)
--10833-- transtab: discarded 0 (0 -> ??)
--10833-- scheduler: 40,544 jumps (bb entries).
--10833-- scheduler: 0/3,214 major/minor sched events.
--10833-- sanity: 1 cheap, 1 expensive checks.
--10833-- exectx: 30,011 lists, 46 contexts (avg 0 per list)
--10833-- exectx: 83 searches, 37 full compares (445 per 1000)
--10833-- exectx: 1 cmp2, 26 cmp4, 0 cmpAll
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Confuse-devel] memory leak,
pwi <=