| 4936 | |
| 4937 | |
| 4938 | void 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 | |
| 4964 | void Security_context::skip_grants() |
no test coverage detected