libidav/config.c

changeset 852
83fdf679df99
parent 845
8ac8bf29e2ee
equal deleted inserted replaced
850:bbe2925eb590 852:83fdf679df99
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;

mercurial