[asterisk-commits] rizzo: branch rizzo/astobj2 r47215 - /team/rizzo/astobj2/main/astobj2.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Nov 6 04:31:06 MST 2006


Author: rizzo
Date: Mon Nov  6 05:31:06 2006
New Revision: 47215

URL: http://svn.digium.com/view/asterisk?rev=47215&view=rev
Log:
add a missing unlock


Modified:
    team/rizzo/astobj2/main/astobj2.c

Modified: team/rizzo/astobj2/main/astobj2.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/main/astobj2.c?rev=47215&r1=47214&r2=47215&view=diff
==============================================================================
--- team/rizzo/astobj2/main/astobj2.c (original)
+++ team/rizzo/astobj2/main/astobj2.c Mon Nov  6 05:31:06 2006
@@ -457,8 +457,10 @@
 		break;
 	}
 
-	if (a->bucket == lim)	/* not found */
+	if (a->bucket == lim) {	/* not found */
+		astobj2_unlock(a->c);
 		return NULL;
+	}
 	astobj2_ref(EXTERNAL_OBJ(a->cur), 1);	/* inc refcount of returned object */
 
 	astobj2_unlock(a->c);



More information about the asterisk-commits mailing list