src/server/config/mimeconf.c

changeset 579
e10457d74fe1
parent 576
5c31cc844c68
equal deleted inserted replaced
578:eb48f716b31c 579:e10457d74fe1
61 61
62 return conf; 62 return conf;
63 } 63 }
64 64
65 void free_mime_config(MimeConfig *conf) { 65 void free_mime_config(MimeConfig *conf) {
66 cxMempoolDestroy(conf->parser.a->data); // TODO: is there a better way to access the mempool? 66 cxMempoolFree(conf->parser.a->data); // TODO: is there a better way to access the mempool?
67 free(conf); 67 free(conf);
68 } 68 }
69 69
70 int mimeconf_parse(void *p, ConfigLine *begin, ConfigLine *end, cxmutstr line) { 70 int mimeconf_parse(void *p, ConfigLine *begin, ConfigLine *end, cxmutstr line) {
71 MimeConfig *conf = p; 71 MimeConfig *conf = p;

mercurial