[asterisk-commits] coreyfarrell: trunk r433997 - in /trunk: ./ res/res_pjsip_phoneprov_provider.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Apr 5 07:55:23 CDT 2015


Author: coreyfarrell
Date: Sun Apr  5 07:55:21 2015
New Revision: 433997

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433997
Log:
res_pjsip_phoneprov_provider: Fix leaked OBJ_MULTIPLE iterator.

res_pjsip_phoneprov_provider was using ao2_callback with OBJ_MULTIPLE, then
ignoring the return.  Added OBJ_NODATA flag to prevent a reference leak.

ASTERISK-24935 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/4578/
........

Merged revisions 433996 from http://svn.asterisk.org/svn/asterisk/branches/13

Modified:
    trunk/   (props changed)
    trunk/res/res_pjsip_phoneprov_provider.c

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

Modified: trunk/res/res_pjsip_phoneprov_provider.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_pjsip_phoneprov_provider.c?view=diff&rev=433997&r1=433996&r2=433997
==============================================================================
--- trunk/res/res_pjsip_phoneprov_provider.c (original)
+++ trunk/res/res_pjsip_phoneprov_provider.c Sun Apr  5 07:55:21 2015
@@ -353,7 +353,7 @@
 		return 0;
 	}
 
-	ao2_callback(users, OBJ_MULTIPLE, users_apply_handler, sorcery);
+	ao2_callback(users, OBJ_MULTIPLE | OBJ_NODATA, users_apply_handler, sorcery);
 	ao2_ref(users, -1);
 
 	return 0;




More information about the asterisk-commits mailing list