src/server/config/acl.c

changeset 556
b036ccad4b49
parent 490
d218607f5a7e
equal deleted inserted replaced
555:66b0accda0a8 556:b036ccad4b49
55 55
56 return conf; 56 return conf;
57 } 57 }
58 58
59 void free_acl_file(ACLFile *conf) { 59 void free_acl_file(ACLFile *conf) {
60 //ucx_mempool_destroy(conf->parser.mp->pool); 60 cxListDestroy(conf->namedACLs);
61 cxListDestroy(conf->uriACLs);
62 cxListDestroy(conf->pathACLs);
63 cxMempoolDestroy(conf->parser.mp->data); // TODO: is there a better way to access the mempool?
61 free(conf); 64 free(conf);
62 } 65 }
63 66
64 int acl_parse(void *p, ConfigLine *begin, ConfigLine *end, cxmutstr line) { 67 int acl_parse(void *p, ConfigLine *begin, ConfigLine *end, cxmutstr line) {
65 ACLFile *aclf = p; 68 ACLFile *aclf = p;

mercurial