[asterisk-commits] coreyfarrell: branch 13 r427405 - in /branches/13: ./ res/res_hep.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 6 03:23:37 CST 2014


Author: coreyfarrell
Date: Thu Nov  6 03:23:32 2014
New Revision: 427405

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

Merged revisions 427400 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    branches/13/   (props changed)
    branches/13/res/res_hep.c

Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: branches/13/res/res_hep.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_hep.c?view=diff&rev=427405&r1=427404&r2=427405
==============================================================================
--- branches/13/res/res_hep.c (original)
+++ branches/13/res/res_hep.c Thu Nov  6 03:23:32 2014
@@ -532,6 +532,7 @@
 	int res;
 
 	if (!config || !config->general->enabled) {
+		ao2_ref(capture_info, -1);
 		return 0;
 	}
 




More information about the asterisk-commits mailing list