From adf46e91c5b98eac76db63cf4fdf7109f7a63ee2 Mon Sep 17 00:00:00 2001 From: Walter Doekes Date: Wed, 1 Oct 2014 09:50:32 +0000 Subject: [PATCH] chan_sip: Remove excess ref of realtime peer before sip_poke_peer. The peer is referenced at the end of sip_poke_peer, it should not get an extra ref before the call to sip_poke_peer. This fixes a memory leak. ASTERISK-22945 #close Reported by: ibercom Tested by: Yuriy Gorlichenko Patches: asterisk11.patch uploaded by ibercom (License #6599) Review: https://reviewboard.asterisk.org/r/4031/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@424176 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 1 - 1 file changed, 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 13b792cc8c..ddb3cc417d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -28685,7 +28685,6 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str /* Startup regular pokes */ if (!devstate_only && enablepoke) { - ref_peer(peer, "schedule qualify"); sip_poke_peer(peer, 0); } } -- 2.47.2