MCPcopy Create free account
hub / github.com/MariaDB/server / acl_free

Function acl_free

sql/sql_acl.cc:2984–3005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2982
2983
2984void 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/*

Callers 2

clean_upFunction · 0.85
acl_reloadFunction · 0.85

Calls 7

my_hash_freeFunction · 0.85
free_rootFunction · 0.85
delete_dynamicFunction · 0.85
plugin_unlockFunction · 0.85
free_memoryMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected