[SR-Users] sip_msg structure and memory free

Henning Westerholt hw at kamailio.org
Thu May 31 11:49:58 CEST 2018


Am Donnerstag, 31. Mai 2018, 08:37:02 CEST schrieb Konstantin Polyakov:
> 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?

Hello,

please ask this specific questions regarding code and module implementation at our 
developer list "sr-dev".

Thanks and regards,

Henning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180531/6751a8e4/attachment.html>


More information about the sr-users mailing list