[asterisk-dev] [Code Review] 4303: res_pjsip_outbound_registration: Fix reference leak.
Mark Michelson
reviewboard at asterisk.org
Thu Jan 8 15:33:44 CST 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4303/#review14129
-----------------------------------------------------------
Ship it!
Ship It!
- Mark Michelson
On Jan. 5, 2015, 11:33 p.m., George Joseph wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/4303/
> -----------------------------------------------------------
>
> (Updated Jan. 5, 2015, 11:33 p.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> Every time a registration started, sip_outbound_registration_response_cb bumps the ref count on client_state then pushes a handle_registration_response task. handle_registration_response never unreffed it though. So every time a registration goes out, the ref count goes up by one.
>
> This patch adds the unreffs to handle_registration_response.
>
>
> Diffs
> -----
>
> branches/13/res/res_pjsip_outbound_registration.c 430220
>
> Diff: https://reviewboard.asterisk.org/r/4303/diff/
>
>
> Testing
> -------
>
> Watched the ref count on client_state in no-auth registrations, auth-successful registrations and auth-failed registrations to make sure the ref count stayed stable.
>
>
> Thanks,
>
> George Joseph
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20150108/fe6f8270/attachment.html>
More information about the asterisk-dev
mailing list