<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><tt>Thanks for the awesome report, Jim - I managed to pinpoint
        the issue immediately.<br>
      </tt></p>
    <p><tt>For now, you can actually prevent the leak by doing:</tt></p>
    <p><tt>rest_get(<a class="moz-txt-link-rfc2396E" href="https://www.opensips.org">"https://www.opensips.org"</a>, "$var(body)",
        "$var(ctype)");</tt></p>
    <p><tt>instead of:</tt></p>
    <p><tt>rest_get(<a class="moz-txt-link-rfc2396E" href="https://www.opensips.org">"https://www.opensips.org"</a>, "$var(body)");<br>
      </tt></p>
    <p><tt>Nevertheless, a fix will be available soon.<br>
      </tt></p>
    <p><tt>Cheers,</tt><br>
    </p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 01.03.2017 18:39, Liviu Chircu
      wrote:<br>
    </div>
    <blockquote
      cite="mid:db6253f0-6f2d-ffdb-4f7d-014a21efe24e@opensips.org"
      type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <p><tt>It's:</tt></p>
      <p><tt><bytes total>: <no_of_individual_allocations> x
          [ file: function, line ]</tt><br>
      </p>
      <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      <div class="moz-cite-prefix">On 01.03.2017 18:10, Jim DeVito
        wrote:<br>
      </div>
      <blockquote
cite="mid:CAAcmnhkw7w+2aSwh=kSd1d=KiFsPreyui91i6oBiGWrNPe6W_Q@mail.gmail.com"
        type="cite">
        <div dir="ltr">Hi Liviu!
          <div><br>
          </div>
          <div>Server:: OpenSIPS (2.2.3 (x86_64/linux))<br>
          </div>
          <div><br>
          </div>
          <div>For my own understanding what does the numbers on either
            side of the colon mean? <span style="font-size:12.8px">sip-proxy02
              opensips: 364912 : 6634 x [rest_cb.c: header_func, line
              88] I assume consumed memory vs released or something like
              that?</span></div>
          <div><span style="font-size:12.8px"><br>
            </span></div>
          <div><span style="font-size:12.8px">Thanks for looking into
              this. </span></div>
          <div><br>
          </div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Wed, Mar 1, 2017 at 10:58 AM,
            Liviu Chircu <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <p><tt>Hi, Jim!</tt></p>
                <p><tt>Catching memory leaks in OpenSIPS 2.2+ has never
                    been more fun :) This definitely looks broken:</tt></p>
                <p> <span>Mar  1 15:02:00 sip-proxy02 opensips: 364912
                    : 6634 x [rest_cb.c: header_func, line 88]</span></p>
                <span><tt>May I ask what version are you using?
                    ("opensips -V") That's the first step in trying to
                    reproduce this!<br>
                    <br>
                    Regards,<br>
                  </tt></span>
                <pre class="m_-2565907697575466799moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a moz-do-not-send="true" class="m_-2565907697575466799moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a></pre>
    <div class="m_-2565907697575466799moz-cite-prefix">On 01.03.2017 17:28, Jim DeVito wrote:

    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>Hi All,</div>
        <div>

        </div>
        <div>Please take a look at my possible memory problem. The first
          part of the pastebin is what I see in my log file when I do...</div>
        <div>

        </div>
        <div>rest_get("<a moz-do-not-send="true" href="http://localhost/cnam/?number=$avp%28dipnum%29" target="_blank">http://localhost/<wbr>cnam/?number=$avp(dipnum)</a>",
          "$avp(cnam)");

        </div>
        <div>

        </div>
        <div>The second part is the memory dump from the running process
          with the debugging flags compiled in.</div>
        

        <div><a moz-do-not-send="true" href="http://pastebin.com/45QrtFts" target="_blank">http://pastebin.com/45QrtFts</a>

        </div>
        <div>

        </div>
        <div>Thoughts?</div>
        <div>

        </div>
        <div>Thanks!!</div>
        <div>

        </div>
        <div>P.S. Here is the original conversation. <a moz-do-not-send="true" href="https://opensips.org/pipermail/users/2016-November/035860.html" target="_blank">https://<wbr>opensips.org/pipermail/users/<wbr>2016-November/035860.html</a></div>
        <div>

        </div>
        <div class="m_-2565907697575466799gmail_signature">
          <div dir="ltr">-------------
            <div>Jim DeVito</div>
          </div>
        </div>
      </div>
      

      <fieldset class="m_-2565907697575466799mimeAttachmentHeader"></fieldset>
      

      <pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="m_-2565907697575466799moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_-2565907697575466799moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    

  </div>


______________________________<wbr>_________________

Users mailing list

<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>

<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>


</blockquote></div>

<div>
</div>-- 
<div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-------------<div>Jim DeVito</div><div>Mobile 216.507.9497</div></div></div>
</div>


<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>

</blockquote>


<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>

</blockquote>
</body></html>