summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2012-09-29 03:56:49 +0000
committerMatthew Jordan <mjordan@digium.com>2012-09-29 03:56:49 +0000
commitc3c317433f4a390c9af01d635787f78bfa34e60c (patch)
tree9df8e9eb8547a04a380bc2221c8d8a4d5ad34868
parent1f9d7090dfab2c5ff958c7d0e00e26f09b852e3a (diff)
Fix ref leak when adding ICE candidates to an SDP
There was a missing decrement to the reference count for the current ICE candidate when local candidates are being added to an outbound SDP. This patch corrects that. ........ Merged revisions 374085 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index a506b4568..a1edca9f4 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12226,6 +12226,7 @@ static void add_ice_to_sdp(struct ast_rtp_instance *instance, struct ast_str **a
}
ast_str_append(a_buf, 0, "\r\n");
+ ao2_ref(candidate, -1);
}
ao2_iterator_destroy(&i);