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

rmudgett reviewboard at asterisk.org
Wed Aug 31 20:23:35 CDT 2011


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

Review request for Asterisk Developers and kobaz.


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
-----

  /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/560a5605/attachment-0001.htm>


More information about the asterisk-dev mailing list