[asterisk-dev] [Code Review] res_musiconhold misuse of refs Take 2

rmudgett reviewboard at asterisk.org
Wed Aug 31 21:10:16 CDT 2011


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

(Updated Aug. 31, 2011, 9:10 p.m.)


Review request for Asterisk Developers and kobaz.


Changes
-------

Add a warning message in local_ast_moh_cleanup().


Summary
-------

When starting MusicOnHold from Dial() there are some unref problems which 
lead to corruptions and crashing.  See ASTERISK-18346 for more.  

* Fixed moh_alloc() and moh_release() functions not handling the 
state->class reference consistently.  


This addresses bug ASTERISK-18346.
    https://issues.asterisk.org/jira/browse/ASTERISK-18346


Diffs (updated)
-----

  /branches/1.8/res/res_musiconhold.c 334212 

Diff: https://reviewboard.asterisk.org/r/1404/diff


Testing
-------

Replicated the problem.  With the patch, the problem no longer happens.


Thanks,

rmudgett

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


More information about the asterisk-dev mailing list