<p><a href="https://github.com/shripchenko" class="user-mention">@shripchenko</a>, I uploaded your first patch, the one with the fixes on mallocs - thank you.</p>

<p>On the second patch - the load are evaluated (and destination selected) under the lock of the resources. So if you have the first call, it will get the first destination; next call will take the second (as the first one already has +1 load); third call will go to the third destination and so on. Unless the first one is already freed (0 load) by short call. So the load distribution is still good, but the first will keep getting the 0 duration calls. I guess this is your case, right ?</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/pull/345#issuecomment-72431444">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciaPj1uQzSLmnTqKbOXvugi2xIhd7ks5nn0K6gaJpZM4CpiN1.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/pull/345#issuecomment-72431444"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>