Author: wdoekes
Date: Wed Oct  1 04:50:32 2014
New Revision: 424176

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424176
Log:
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/

Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=424176&r1=424175&r2=424176
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Wed Oct  1 04:50:32 2014
@@ -28685,7 +28685,6 @@
 
                /* Startup regular pokes */
                if (!devstate_only && enablepoke) {
-                       ref_peer(peer, "schedule qualify");
                        sip_poke_peer(peer, 0);
                }
        }


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to