<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://reviewboard.asterisk.org/r/1090/">https://reviewboard.asterisk.org/r/1090/</a>
</td>
</tr>
</table>
<br />
<p>Ship it!</p>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I'm not sure if it fixes the issue or not either, but it's a good change to make regardless.</pre>
<br />
<p>- Russell</p>
<br />
<p>On January 31st, 2011, 10:47 a.m., Brett Bryant wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://reviewboard.asterisk.orgrb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for Asterisk Developers.</div>
<div>By Brett Bryant.</div>
<p style="color: grey;"><i>Updated 2011-01-31 10:47:50</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">A bug reported to digium stated that when cel_pgsql.so was reloaded in quick succession, asterisk would crash. Upon trying to replicate this bug in multiple ways, I was unable to but believe that the crash was due to a race condition in the module_unload code which caused certain memory to be free'd twice. The reason for this was because the pointers were checked in a conditional statement before being free'd, to make sure they weren't NULL, but weren't being set to NULL after they were being free'd. Therefore, if reload was called too quickly a race condition might result causing memory to be free'd twice.</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>/tags/1.8.2-rc1/cel/cel_pgsql.c <span style="color: grey">(305124)</span></li>
</ul>
<p><a href="https://reviewboard.asterisk.org/r/1090/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>