| 2982 | |
| 2983 | |
| 2984 | void acl_free(bool end) |
| 2985 | { |
| 2986 | my_hash_free(&acl_roles); |
| 2987 | acl_public= NULL; |
| 2988 | free_root(&acl_memroot,MYF(0)); |
| 2989 | delete_dynamic(&acl_hosts); |
| 2990 | delete_dynamic_with_callback(&acl_users, free_acl_user); |
| 2991 | acl_dbs.free_memory(); |
| 2992 | delete_dynamic(&acl_wild_hosts); |
| 2993 | delete_dynamic(&acl_proxy_users); |
| 2994 | my_hash_free(&acl_check_hosts); |
| 2995 | my_hash_free(&acl_roles_mappings); |
| 2996 | if (!end) |
| 2997 | acl_cache->clear(1); /* purecov: inspected */ |
| 2998 | else |
| 2999 | { |
| 3000 | plugin_unlock(0, native_password_plugin); |
| 3001 | plugin_unlock(0, old_password_plugin); |
| 3002 | delete acl_cache; |
| 3003 | acl_cache=0; |
| 3004 | } |
| 3005 | } |
| 3006 | |
| 3007 | |
| 3008 | /* |
no test coverage detected