CID: 1214221,1214222
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.
正在显示
请
注册
或者
登录
后发表评论