[sr-dev] sip_msg structure and memory free

Daniel-Constantin Mierla miconda at gmail.com
Fri Jun 1 12:31:14 CEST 2018


Hello,

is this a new header or assigning to an existing header structure?

The existing headers are cleaned up inside clean_hdr_field().

Cheers,
Daniel

On 31.05.18 11:54, Konstantin Polyakov wrote:
> Hello All,
>
> There is a structure *sip_msg* which is passed into a module and
> represents a received sip message.
> It contains number of pointers to *hdr_field* members.
> In its turn *hdr_field* contains member *void* parsed*
>
> In the sanity module we assign to *parsed* member a pointer to newly
> allocated memory and we don't free that memory at the end.
> Do we need to free explicitly or this memory will be deallocated later
> together with *sip_msg*?
>
> In other words is it memory leak or not?
>
>
> Best regards,
> Konstantin
>
>
>
>
> _______________________________________________
> Kamailio (SER) - Development Mailing List
> sr-dev at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180601/833f57a5/attachment.html>


More information about the sr-dev mailing list