Ticket #111 (new defect)

Opened 9 months ago

Last modified 6 weeks ago

mem leaks

Reported by: michu at neophob-dot com Owned by: michael
Priority: normal Component: lcd4linux
Version: Severity: normal
Keywords: Cc:

Description

I just ran valgrind, looks like there are some minor mem leaks...

devmach:~/lcd4linux# valgrind --leak-check=full ./lcd4linux -vqF
==6423== Memcheck, a memory error detector.
==6423== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==6423== Using LibVEX rev 1804, a library for dynamic binary translation.
==6423== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==6423== Using valgrind-3.3.0, a dynamic binary instrumentation framework.
==6423== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==6423== For more details, rerun with: -v
==6423==
Version 0.10.2-SVN-796 starting
[KVV] Using station 89
[KVV] Using default port 80
[KVV] Using default refresh interval of 60 seconds
[KVV] Default abbreviation setting: off
[MPD] empty 'Plugin:MPD.password' entry in /etc/lcd4linux.conf, assuming none
Curses: $Rev: 840 $
==6423==
==6423== ERROR SUMMARY: 12 errors from 5 contexts (suppressed: 17 from 1)
==6423== malloc/free: in use at exit: 93,272 bytes in 496 blocks.
==6423== malloc/free: 1,415 allocs, 919 frees, 509,748 bytes allocated.
==6423== For counts of detected errors, rerun with: -v
==6423== searching for pointers to 496 not-freed blocks.
==6423== checked 216,752 bytes.
==6423==
==6423==
==6423== 4 bytes in 2 blocks are definitely lost in loss record 3 of 33
==6423==    at 0x401D868: malloc (vg_replace_malloc.c:207)
==6423==    by 0x40F718F: strdup (in /lib/tls/i686/cmov/libc-2.3.6.so)
==6423==    by 0x804BF0F: cfg_get (cfg.c:381)
==6423==    by 0x8059A5C: plugin_init_kvv (plugin_kvv.c:741)
==6423==    by 0x80523E4: plugin_init (plugin.c:159)
==6423==    by 0x804AA3D: main (lcd4linux.c:283)
==6423==
==6423==
==6423== 16 bytes in 1 blocks are definitely lost in loss record 5 of 33
==6423==    at 0x401D868: malloc (vg_replace_malloc.c:207)
==6423==    by 0x804C80E: SetResult (evaluator.c:289)
==6423==    by 0x804CF19: SetVariableString (evaluator.c:440)
==6423==    by 0x804D169: Level11 (evaluator.c:733)
==6423==    by 0x804D48B: Level10 (evaluator.c:782)
==6423==    by 0x804D4EB: Level09 (evaluator.c:799)
==6423==    by 0x804D54B: Level08 (evaluator.c:816)
==6423==    by 0x804D5AB: Level07 (evaluator.c:833)
==6423==    by 0x804D61B: Level06 (evaluator.c:850)
==6423==    by 0x804D67B: Level05 (evaluator.c:866)
==6423==    by 0x804D6DB: Level04 (evaluator.c:883)
==6423==    by 0x804D73B: Level03 (evaluator.c:900)
==6423==
==6423==
==6423== 2,036 (24 direct, 2,012 indirect) bytes in 3 blocks are definitely lost in loss record 29 of 33
==6423==    at 0x401D93E: realloc (vg_replace_malloc.c:429)
==6423==    by 0x804D05C: LinkNode (evaluator.c:647)
==6423==    by 0x804D58B: Level08 (evaluator.c:821)
==6423==    by 0x804D5AB: Level07 (evaluator.c:833)
==6423==    by 0x804D61B: Level06 (evaluator.c:850)
==6423==    by 0x804D67B: Level05 (evaluator.c:866)
==6423==    by 0x804D6DB: Level04 (evaluator.c:883)
==6423==    by 0x804D73B: Level03 (evaluator.c:900)
==6423==    by 0x804D8AB: Level01 (evaluator.c:951)
==6423==    by 0x804D931: Compile (evaluator.c:1183)
==6423==    by 0x8050C41: widget_text_init (widget_text.c:295)
==6423==    by 0x8050912: widget_add (widget.c:231)
==6423==
==6423==
==6423== 108 (60 direct, 48 indirect) bytes in 3 blocks are definitely lost in loss record 30 of 33
==6423==    at 0x401D868: malloc (vg_replace_malloc.c:207)
==6423==    by 0x804C641: NewResult (evaluator.c:249)
==6423==    by 0x804C874: SetResult (evaluator.c:266)
==6423==    by 0x804E014: EvalTree (evaluator.c:1146)
==6423==    by 0x804E237: Eval (evaluator.c:1213)
==6423==    by 0x804E420: property_eval (property.c:115)
==6423==    by 0x8051213: widget_text_update (widget_text.c:212)
==6423==    by 0x804FA59: timer_process (timer.c:142)
==6423==    by 0x804ADE1: main (lcd4linux.c:373)
==6423==
==6423== LEAK SUMMARY:
==6423==    definitely lost: 104 bytes in 9 blocks.
==6423==    indirectly lost: 2,060 bytes in 101 blocks.
==6423==      possibly lost: 0 bytes in 0 blocks.
==6423==    still reachable: 91,108 bytes in 386 blocks.
==6423==         suppressed: 0 bytes in 0 blocks.
==6423== Reachable blocks (those to which a pointer was found) are not shown.
==6423== To see them, rerun with: --leak-check=full --show-reachable=yes

Attachments

Add/Change #111 (mem leaks)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.