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

Corey Farrell reviewboard at asterisk.org
Mon Oct 27 03:03:53 CDT 2014


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

Review request for Asterisk Developers.


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/20141027/446b6c79/attachment-0001.html>


More information about the asterisk-dev mailing list