src/server/config/acl.c

changeset 579
e10457d74fe1
parent 576
5c31cc844c68
equal deleted inserted replaced
578:eb48f716b31c 579:e10457d74fe1
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 cxListDestroy(conf->namedACLs); 60 cxListFree(conf->namedACLs);
61 cxListDestroy(conf->uriACLs); 61 cxListFree(conf->uriACLs);
62 cxListDestroy(conf->pathACLs); 62 cxListFree(conf->pathACLs);
63 cxMempoolDestroy(conf->parser.a->data); // TODO: is there a better way to access the mempool? 63 cxMempoolFree(conf->parser.a->data); // TODO: is there a better way to access the mempool?
64 free(conf); 64 free(conf);
65 } 65 }
66 66
67 int acl_parse(void *p, ConfigLine *begin, ConfigLine *end, cxmutstr line) { 67 int acl_parse(void *p, ConfigLine *begin, ConfigLine *end, cxmutstr line) {
68 ACLFile *aclf = p; 68 ACLFile *aclf = p;

mercurial