<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      is this a new header or assigning to an existing header structure?<br>
      <br>
      The existing headers are cleaned up inside clean_hdr_field().<br>
      <br>
      Cheers,<br>
      Daniel<br>
      <br>
      On 31.05.18 11:54, Konstantin Polyakov wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1527760482.120883825@f45.i.mail.ru">
      Hello All,<br>
      <br>
      There is a structure <strong>sip_msg</strong> which is passed into
      a module and represents a received sip message.<br>
      It contains number of pointers to <strong>hdr_field</strong> members.<br>
      In its turn <strong>hdr_field</strong> contains member <strong>void*
        parsed</strong><br>
      <br>
      In the sanity module we assign to <strong>parsed</strong> member a
      pointer to newly allocated memory and we don't free that memory at
      the end.<br>
      Do we need to free explicitly or this memory will be deallocated
      later together with <strong>sip_msg</strong>?<br>
      <br>
      In other words is it memory leak or not?<br>
      <br>
      <br>
      Best regards,<br>
      Konstantin<br>
      <br>
      <br>
      <!--'"--><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Development Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.kamailio.org">sr-dev@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>