[asterisk-dev] [Code Review] 4113: func_cdr: CDR_PROP leaks payload

Corey Farrell reviewboard at asterisk.org
Tue Oct 28 06:11:16 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4113/
-----------------------------------------------------------

(Updated Oct. 28, 2014, 6:11 a.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers.


Changes
-------

Committed in revision 426252


Bugs: ASTERISK-24455
    https://issues.asterisk.org/jira/browse/ASTERISK-24455


Repository: Asterisk


Description
-------

cdr_prop_write allocates payload twice, causing a leak for every call.  I've removed the allocation with the declaration of payload, leaving it to be allocated at line 563.


Diffs
-----

  /branches/13/funcs/func_cdr.c 426139 

Diff: https://reviewboard.asterisk.org/r/4113/diff/


Testing
-------

Visual inspection only - my system is busy running other tests and this fix is very clear.


Thanks,

Corey Farrell

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141028/4a5b9eb2/attachment.html>


More information about the asterisk-dev mailing list