diff --git a/main/pbx.c b/main/pbx.c index 1ade4159b6b3c1a21f42d7aa6a2ad6c2ef2d93a0..f79461e4cb4bf753b929554cae2d44da72c12f3d 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -2090,7 +2090,6 @@ static int ast_remove_hint(struct ast_exten *e) if (!e) return -1; - AST_RWLIST_WRLOCK(&hints); AST_RWLIST_TRAVERSE_SAFE_BEGIN(&hints, hint, list) { if (hint->exten == e) { cbprev = NULL; @@ -2110,7 +2109,6 @@ static int ast_remove_hint(struct ast_exten *e) } } AST_RWLIST_TRAVERSE_SAFE_END - AST_RWLIST_UNLOCK(&hints); return res; }