[asterisk-commits] coreyfarrell: branch 13 r433996 - /branches/13/res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Apr 5 07:53:55 CDT 2015
Author: coreyfarrell
Date: Sun Apr 5 07:53:47 2015
New Revision: 433996
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=433996
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/
Modified:
branches/13/res/res_pjsip_phoneprov_provider.c
Modified: branches/13/res/res_pjsip_phoneprov_provider.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_pjsip_phoneprov_provider.c?view=diff&rev=433996&r1=433995&r2=433996
==============================================================================
--- branches/13/res/res_pjsip_phoneprov_provider.c (original)
+++ branches/13/res/res_pjsip_phoneprov_provider.c Sun Apr 5 07:53:47 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