Summary: | ASTERISK-12949: [patch] Prevent a crash when unloading res_musiconhold.so and then stopping asterisk. | ||
Reporter: | Eliel Sardanons (eliel) | Labels: | |
Date Opened: | 2008-10-22 06:17:18 | Date Closed: | 2008-11-18 17:59:02.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Resources/res_musiconhold |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) res_musiconhold.c.patch | |
Description: | We are not unregistering function atexit being registered by res_musiconhold module. | ||
Comments: | By: Leif Madsen (lmadsen) 2008-10-22 10:22:16 A simple issue I'm assigning to putnopvut in the hopes it can be resolved quickly. thanks! By: Digium Subversion (svnbot) 2008-11-18 17:59:01.000-0600 Repository: asterisk Revision: 157592 U trunk/res/res_musiconhold.c ------------------------------------------------------------------------ r157592 | mmichelson | 2008-11-18 17:59:01 -0600 (Tue, 18 Nov 2008) | 10 lines This change prevents a crash from occurring if res_musiconhold.so is unloaded and then Asterisk is stopped. The problem was that we are not unregistering the ast_moh_destroy function at exit. (closes issue ASTERISK-12949) Reported by: eliel Patches: res_musiconhold.c.patch uploaded by eliel (license 64) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=157592 |