MCPcopy Create free account
hub / github.com/acl-dev/acl / reset

Method reset

lib_acl_cpp/src/master/master_conf.cpp:32–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void master_conf::reset()
33{
34 if (path_) {
35 acl_myfree(path_);
36 }
37 if (cfg_) {
38 acl_xinetd_cfg_free(cfg_);
39 cfg_ = NULL;
40 }
41 if (int_cfg_) {
42 acl_myfree(int_cfg_);
43 int_cfg_ = NULL;
44 }
45 if (int64_cfg_) {
46 acl_myfree(int64_cfg_);
47 int64_cfg_ = NULL;
48 }
49 if (str_cfg_) {
50 for (int i = 0; str_cfg_[i].name != NULL; i++) {
51 if (*str_cfg_[i].target) {
52 acl_myfree(*str_cfg_[i].target);
53 }
54 }
55 acl_myfree(str_cfg_);
56 str_cfg_ = NULL;
57 }
58 if (bool_cfg_) {
59 acl_myfree(bool_cfg_);
60 bool_cfg_ = NULL;
61 }
62
63 cfg_loaded_ = false;
64
65 bool_tbl_ = NULL;
66 int_tbl_ = NULL;
67 int64_tbl_ = NULL;
68 str_tbl_ = NULL;
69}
70
71void master_conf::load(const char* path)
72{

Callers 1

~master_baseMethod · 0.45

Calls 1

acl_xinetd_cfg_freeFunction · 0.85

Tested by

no test coverage detected