mirror of https://github.com/asterisk/asterisk
Delay acquisition of the ast_sip_endpoint reference in mwi_get_notify_data() to avoid an ao2 ref leak on early-return error paths. Move ast_sip_subscription_get_endpoint() to just before first use so all acquired references are properly cleaned up. Fixes: #1675pull/2003/head
parent
c3e4a37a38
commit
2c2240b296
Loading…
Reference in new issue