| 1077 | } |
| 1078 | |
| 1079 | static config_holder_t * |
| 1080 | new_config_holder(const char *path) |
| 1081 | { |
| 1082 | config_holder_t *config_holder = static_cast<config_holder_t *>(TSmalloc(sizeof(config_holder_t))); |
| 1083 | config_holder->config_path = 0; |
| 1084 | config_holder->config = 0; |
| 1085 | config_holder->last_load = 0; |
| 1086 | |
| 1087 | if (path) { |
| 1088 | config_holder->config_path = nstr(path); |
| 1089 | } else { |
| 1090 | config_holder->config_path = nullptr; |
| 1091 | } |
| 1092 | load_config_file(config_holder); |
| 1093 | return config_holder; |
| 1094 | } |
| 1095 | |
| 1096 | static int |
| 1097 | free_handler(TSCont cont, TSEvent /* event ATS_UNUSED */, void * /* edata ATS_UNUSED */) |
no test coverage detected