Author: coreyfarrell
Date: Thu Nov  6 03:22:28 2014
New Revision: 427400

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=427400
Log:
res_hep: fix major leak that occurs when config is missing or enabled=no.

Add missing unreference in hepv3_send_packet.

ASTERISK-24491 #close
Reported by: Zane Conkle
Tested by: Zane Conkle
Review: https://reviewboard.asterisk.org/r/4150/

Modified:
    branches/12/res/res_hep.c

Modified: branches/12/res/res_hep.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/12/res/res_hep.c?view=diff&rev=427400&r1=427399&r2=427400
==============================================================================
--- branches/12/res/res_hep.c (original)
+++ branches/12/res/res_hep.c Thu Nov  6 03:22:28 2014
@@ -533,6 +533,7 @@
        int res;
 
        if (!config || !config->general->enabled) {
+               ao2_ref(capture_info, -1);
                return 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