[asterisk-dev] [Code Review]: Continuing from 1643 (Allow specifying which MixMonitor to Stop)

Mark Michelson reviewboard at asterisk.org
Fri Jan 20 17:25:26 CST 2012



> On Jan. 20, 2012, 5:22 p.m., Mark Michelson wrote:
> > /trunk/apps/app_mixmonitor.c, lines 636-641
> > <https://reviewboard.asterisk.org/r/1682/diff/3/?file=23504#file23504line636>
> >
> >     You need to be sure to free datastore_id even if ast_strlen_zero(uid_channel_var) evaluates true. You've got a memory leak as it is right now.

The easiest way to do this is just to move the ast_free() call to after the if (!ast_strlen_zero(uid_channel_var)) block. That way it gets freed no matter what.


- Mark


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


On Jan. 20, 2012, 5:02 p.m., jrose wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1682/
> -----------------------------------------------------------
> 
> (Updated Jan. 20, 2012, 5:02 p.m.)
> 
> 
> Review request for Asterisk Developers, Mark Michelson and telecos.
> 
> 
> Summary
> -------
> 
> Fixes style problems from r6 on https://reviewboard.asterisk.org/r/1643/
> Changes creation of character buffer to length of a pointer in characters + 3 (2 for 0x, 1 for terminating space)
> 
> That might not be adequate.  Richard was saying something about pointers on other operating systems having other dividing symbols in them.  Well, at least ':'s.
> 
> In my experiences though, a pointer is usually just something like 0x0123FEDC when printed with %p.
> 
> 
> This addresses bug ASTERISK-19096.
>     https://issues.asterisk.org/jira/browse/ASTERISK-19096
> 
> 
> Diffs
> -----
> 
>   /trunk/CHANGES 351538 
>   /trunk/apps/app_mixmonitor.c 351538 
> 
> Diff: https://reviewboard.asterisk.org/r/1682/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> jrose
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120120/eb6b2a51/attachment.htm>


More information about the asterisk-dev mailing list