[asterisk-commits] murf: trunk r114201 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 17 09:45:17 CDT 2008


Author: murf
Date: Thu Apr 17 09:45:16 2008
New Revision: 114201

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114201
Log:
Thanks to snuff for finding these omissions

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=114201&r1=114200&r2=114201
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Apr 17 09:45:16 2008
@@ -13075,6 +13075,7 @@
 				ao2_lock(pi);
 				if (name && regexec(&regexbuf, pi->name, 0, NULL, 0)) {
 					unref_peer(pi, "toss iterator peer ptr before continue");
+					ao2_unlock(pi);
 					continue;
 				};
 				if (ast_test_flag(&pi->flags[1], SIP_PAGE2_RTCACHEFRIENDS)) {
@@ -13098,6 +13099,7 @@
 				ao2_lock(ui);
 				if (name && regexec(&regexbuf, ui->name, 0, NULL, 0)) {
 					unref_user(ui, "toss iterator user ptr before continue");
+					ao2_unlock(ui);
 					continue;
 				};
 				if (ast_test_flag(&ui->flags[1], SIP_PAGE2_RTCACHEFRIENDS)) {




More information about the asterisk-commits mailing list