[Home]

Summary:ASTERISK-10658: [patch] Memory leak on chan_gtalk.c
Reporter:Eliel Sardanons (eliel)Labels:
Date Opened:2007-10-31 15:53:53Date Closed:2007-10-31 16:17:09
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_gtalk
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_gtalk.c.patch
Description:We are allocating newcandidate, and it is not used at that time, it is being overwriten by another call to ast_calloc().
And also notice on the code that 'if (!p)' it is not being freed.
Comments:By: Digium Subversion (svnbot) 2007-10-31 16:17:08

Repository: asterisk
Revision: 87907

_U  trunk/
U   trunk/channels/chan_gtalk.c
U   trunk/channels/chan_jingle.c

------------------------------------------------------------------------
r87907 | qwell | 2007-10-31 16:17:08 -0500 (Wed, 31 Oct 2007) | 15 lines

Merged revisions 87906 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue ASTERISK-10658)
(closes issue ASTERISK-10660)

........
r87906 | qwell | 2007-10-31 16:16:20 -0500 (Wed, 31 Oct 2007) | 4 lines

Don't try to allocate memory that we're just going to re-allocate later anyways.

Issues 11130 and 11132, patch by eliel.

........

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