<p>So, just to clarify - the issue is not in the memory allocator itself, but in the cote that uses it wrong. We could guard some critical sections with mutexes, but that will introduce a big performance penalty, and it will only prevent OpenSIPS from crashing, but the code will still use it wrong. The solution of this problem is to find the bad code.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/721#issuecomment-163316642">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciXqQlTwr-wY6YRem7R4xBA3Fy5NPks5pOE9vgaJpZM4Gx0aq.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/721#issuecomment-163316642"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>