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

Method destroy

sql/sql_class.cc:4938–4961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4936
4937
4938void Security_context::destroy()
4939{
4940 DBUG_PRINT("info", ("freeing security context"));
4941 // If not pointer to constant
4942 if (host != my_localhost)
4943 {
4944 my_free((char*) host);
4945 host= NULL;
4946 }
4947 if (is_user_defined())
4948 {
4949 my_free((char*) user);
4950 user= NULL;
4951 }
4952
4953 if (external_user)
4954 {
4955 my_free(external_user);
4956 external_user= NULL;
4957 }
4958
4959 my_free((char*) ip);
4960 ip= NULL;
4961}
4962
4963
4964void Security_context::skip_grants()

Callers 3

cleanupMethod · 0.45
free_connectionMethod · 0.45
~THDMethod · 0.45

Calls 1

my_freeFunction · 0.85

Tested by

no test coverage detected