[asterisk-dev] [Code Review] Add channel locking around datastore accesses in func_odbc.c.

Mark Michelson reviewboard at asterisk.org
Mon Jan 23 15:00:26 CST 2012


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

Ship it!


Looks good to me.

- Mark


On Jan. 23, 2012, 2:14 p.m., rmudgett wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1687/
> -----------------------------------------------------------
> 
> (Updated Jan. 23, 2012, 2:14 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> Accessing the channel datastore list without first locking the channel is bad.
> 
> Adds missing locking around the channel datastore accesses in func_odbc.c.
> 
> * Fixed a potential memory leak when an existing datastore is manually destroyed by inline code instead of calling ast_datastore_free().
> 
> 
> This addresses bug ASTERISK-17948.
>     https://issues.asterisk.org/jira/browse/ASTERISK-17948
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/funcs/func_odbc.c 352199 
> 
> Diff: https://reviewboard.asterisk.org/r/1687/diff
> 
> 
> Testing
> -------
> 
> It compiles. :)
> 
> 
> Thanks,
> 
> rmudgett
> 
>

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


More information about the asterisk-dev mailing list