[asterisk-dev] [Code Review] Fix memory leak in error paths for action_originate().

Mark Michelson reviewboard at asterisk.org
Mon Jan 30 14:47:13 CST 2012


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

Ship it!


I'm giving this a ship it, with the recommendation that you add documentation to ast_request() and to the requester() ast_channel_tech callback that the data should be treated as a const char*. For trunk, I also recommend making the change to these two functions to actually use a const char* instead of void* since that's what the parameter is in reality.

- Mark


On Jan. 25, 2012, 10:43 a.m., rmudgett wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1690/
> -----------------------------------------------------------
> 
> (Updated Jan. 25, 2012, 10:43 a.m.)
> 
> 
> Review request for Asterisk Developers and Mark Michelson.
> 
> 
> Summary
> -------
> 
> * Fix memory leak of vars in error paths for action_originate().
> 
> * Moved struct fast_originate_helper tech and data members to stringfields.
> 
> * Simplified ActionID header handling for fast_originate().
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/main/manager.c 352510 
> 
> Diff: https://reviewboard.asterisk.org/r/1690/diff
> 
> 
> Testing
> -------
> 
> It compiles. :)
> 
> 
> Thanks,
> 
> rmudgett
> 
>

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


More information about the asterisk-dev mailing list