[OpenSIPS-Users] How is the memory allocated from pkg_malloc() freed?

Jeffrey Zhao chunyong.zhao at qq.com
Thu Mar 25 13:03:15 EST 2021


Dear Sir or Madam:

I am writing a module which need to pkg_malloc() some memory, but the allocated memory can't be freed until the SIP message is forwarded.

I don't know where should I put the pkg_free() to free memory.

 

Will the pkg_malloc() allocated memory be freed automatically?

 

I found that there is no pkg_free() called for memory pkg_malloc()  in parse_to_header() of parse_to.c

 

Where and how is the memory freed?

 

Thanks!

Best wishes,

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210325/733c283c/attachment.html>


More information about the Users mailing list