Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak in SIP plugin when handling an incoming INVITE #3032

Closed
pawnnail opened this issue Jul 29, 2022 · 1 comment
Closed

Memory leak in SIP plugin when handling an incoming INVITE #3032

pawnnail opened this issue Jul 29, 2022 · 1 comment

Comments

@pawnnail
Copy link
Contributor

Hope I am not wrong. Allocation by url_as_string() or su_alloc() should be followed by su_free(). Appears to be missing inside case nua_i_invite: {}:

char *callee_text = url_as_string(session->stack->s_home, sip->sip_to->a_url);

Just need to add line su_free(session->stack->s_home, callee_text); before leaving the case block:

@lminiero
Copy link
Member

lminiero commented Aug 1, 2022

Thanks for spotting this, I just pushed a fix for both master and 0.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants