[asterisk-dev] [Code Review] 4303: res_pjsip_outbound_registration: Fix reference leak.
George Joseph
reviewboard at asterisk.org
Thu Jan 8 15:38:16 CST 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4303/
-----------------------------------------------------------
(Updated Jan. 8, 2015, 3:38 p.m.)
Status
------
This change has been marked as submitted.
Review request for Asterisk Developers.
Changes
-------
Committed in revision 430395
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/77a71842/attachment-0001.html>
More information about the asterisk-dev
mailing list