mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-23 09:54:14 +00:00
sip_header_as_string returns new memory alloc'd on the nua_handle's memory pool. This memory would not be freed until the handle was destroyed. Since there is no usage of the call-info header after it is added to the event as a header value, we should make sure to both su_free the sofia returned string, but also more cleanly create the event header value to reduce a strdup.