[asterisk-dev] [Code Review] 4303: res_pjsip_outbound_registration: Fix reference leak.

George Joseph reviewboard at asterisk.org
Tue Dec 30 16:24:31 CST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/4303/
-----------------------------------------------------------

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 430163 

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/20141230/3e4eb9d2/attachment.html>


More information about the asterisk-dev mailing list