264 config->keys = keys_begin; |
264 config->keys = keys_begin; |
265 config->namespaces = namespaces_begin; |
265 config->namespaces = namespaces_begin; |
266 |
266 |
267 if(ret != 0 && error) { |
267 if(ret != 0 && error) { |
268 *error = ret; |
268 *error = ret; |
269 cxMempoolDestroy(cfg_mp); |
269 cxMempoolFree(cfg_mp); |
270 } |
270 } |
271 |
271 |
272 return config; |
272 return config; |
273 } |
273 } |
274 |
274 |
275 void dav_config_free(DavConfig *config) { |
275 void dav_config_free(DavConfig *config) { |
276 cxMempoolDestroy(config->mp); |
276 cxMempoolFree(config->mp); |
277 } |
277 } |
278 |
278 |
279 CxBuffer* dav_config2buf(DavConfig *config) { |
279 CxBuffer* dav_config2buf(DavConfig *config) { |
280 xmlChar* xmlText = NULL; |
280 xmlChar* xmlText = NULL; |
281 int textLen = 0; |
281 int textLen = 0; |