[asterisk-dev] [Code Review] Fix descriptor (and structure reference) leak when call is hungup before answer
Tilghman Lesher
tlesher at digium.com
Thu Mar 25 23:34:40 CDT 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/591/
-----------------------------------------------------------
Review request for Asterisk Developers.
Summary
-------
In trunk and current 1.6.x releases, if a SIP channel is hungup prior to being answered, then a reference leak results, which causes RTP ports not to be freed.
The fix itself is a one-liner, but the additional changes were needed in order to build a regression test for this scenario.
This addresses bug 16774.
https://issues.asterisk.org/view.php?id=16774
Diffs
-----
/trunk/channels/chan_sip.c 254405
/trunk/channels/sip/dialplan_functions.c 254405
/trunk/channels/sip/include/devices.h PRE-CREATION
/trunk/channels/sip/include/globals.h 254405
Diff: https://reviewboard.asterisk.org/r/591/diff
Testing
-------
Unit test written and tested. There is one error that running the test still causes, but it's cosmetic and should be able to be tracked down fairly easily.
Thanks,
Tilghman
More information about the asterisk-dev
mailing list