<p>It seems the patch was incomplete - it led to a double free() because I was not zeroing a freed pointer. On top of that, I've done a partial rework of the internal logic in <a href="https://github.com/OpenSIPS/opensips/commit/683dfaa63df0af317f7485042539bdacf8646eab" class="commit-link"><tt>683dfaa</tt></a>.</p>

<p>It would be great if you could test it out as well (it behaved nicely on my setup). If anything goes wrong, feel free to re-open this. Thanks!</p>

<p>Liviu</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/270#issuecomment-59233347">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyOTAwOTQxOCwiZGF0YSI6eyJpZCI6MzcxNDUxODl9fQ==--05a99cb94fb966ead8cc35dc463f999b631d282c.gif" width="1" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/OpenSIPS/opensips/issues/270#issuecomment-59233347","name":"View Issue"}}</script>