[Home]

Summary:ASTERISK-01822: Leak in editline
Reporter:thansen (thansen)Labels:
Date Opened:2004-06-15 05:29:16Date Closed:2008-01-15 14:58:15.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk-cxnet-keyleak-patch
( 1) asterisk-cxnet-termleak-patch
Description:Forgets to free "el->el_term.t_fkey". Patch attached. Disclaimed.

****** ADDITIONAL INFORMATION ******

Valgrind:

==10386== 96 bytes in 1 blocks are definitely lost in loss record 10 of 14
==10386==    at 0x4002BA51: malloc (vg_replace_malloc.c:153)
==10386==    by 0x80AB736: term_init (term.c:342)
==10386==    by 0x80A702E: el_init (el.c:82)
==10386==    by 0x8096149: ast_remotecontrol (asterisk.c:1235)
Comments:By: thansen (thansen) 2004-06-15 09:28:25

Another leak plugged with second patch.

Valgrind specifics:
==14449== 20 bytes in 1 blocks are definitely lost in loss record 14 of 90
==14449==    at 0x4002BA51: malloc (vg_replace_malloc.c:153)
==14449==    by 0x80A7D81: node__get (key.c:464)
==14449==    by 0x80A7984: key_add (key.c:209)
==14449==    by 0x80A843E: map_init_meta (map.c:1014)
==14449==    by 0x80A8547: map_init_emacs (map.c:1072)
==14449==    by 0x80A85CD: map_set_editor (map.c:1093)
==14449==    by 0x80A7186: el_set (el.c:166)
==14449==    by 0x809362A: main (asterisk.c:1235)

By: Mark Spencer (markster) 2004-06-15 09:32:54

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 14:58:15.000-0600

Repository: asterisk
Revision: 3214

U   trunk/editline/key.c
U   trunk/editline/term.c

------------------------------------------------------------------------
r3214 | markster | 2008-01-15 14:58:15 -0600 (Tue, 15 Jan 2008) | 2 lines

Cleanup leak in editline (bug ASTERISK-1822)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=3214