<p>the libc free() (man 3 free) allows free'ing NULL pointers. I think the quality of the codebase is improved if we stick to this standard.</p>

<p>Your suggestion is excellent. We definitely have to remove all <code>if (buf)</code> tests!</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/commit/17d639b9f11b415d51062005aadb86dd6c2375e2#commitcomment-11680487">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciWpLSSZBbzZzyklUmlNsaCxCwrrsks5oTs4qgaJpZM4FDXKs.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/commit/17d639b9f11b415d51062005aadb86dd6c2375e2#commitcomment-11680487"></link>
    <meta itemprop="name" content="View Commit"></meta>
  </div>
  <meta itemprop="description" content="View this Commit on GitHub"></meta>
</div>