diff --git a/res/ari/resource_applications.c b/res/ari/resource_applications.c index 061d6b4f8464e7a3577f3838bb9712ad5ce2f61d..6c9bd5ca6e63a6fa5af9db462fd0f7512f674732 100644 --- a/res/ari/resource_applications.c +++ b/res/ari/resource_applications.c @@ -60,7 +60,7 @@ void ast_ari_applications_list(struct ast_variable *headers, ao2_lock(apps); count = ao2_container_count(apps); ao2_callback(apps, OBJ_NOLOCK | OBJ_NODATA, append_json, json); - ao2_lock(apps); + ao2_unlock(apps); if (count != ast_json_array_size(json)) { ast_ari_response_error(response, 500, "Internal Server Error",