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

wdoekes reviewboard at asterisk.org
Mon Oct 27 03:07:23 CDT 2014


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

Ship it!


Ship It!

- wdoekes


On Oct. 27, 2014, 8:03 a.m., Corey Farrell wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/4113/
> -----------------------------------------------------------
> 
> (Updated Oct. 27, 2014, 8:03 a.m.)
> 
> 
> 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/57387b78/attachment.html>


More information about the asterisk-dev mailing list