X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fpazpar2_config.c;h=49a73d7fcf92c2b0fa1fbc0ce2052e41f660f5f6;hb=e413b0a94252b858ec346ca98155e7ab61660802;hp=770ec7d23afe70a8b4ffa7f7a696ba6eb0d3b56a;hpb=19a0803f7298f5a0d583f5f70582ba29cb373265;p=pazpar2-moved-to-github.git diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 770ec7d..49a73d7 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -273,6 +273,8 @@ void service_destroy(struct conf_service *service) if (!pazpar2_decref(&service->ref_count, service->mutex)) { service_xslt_destroy(service); + if (service->xml_node) + xmlFreeNode(service->xml_node); pp2_charset_fact_destroy(service->charsets); ccl_qual_rm(&service->ccl_bibset); yaz_mutex_destroy(&service->mutex); @@ -744,6 +746,7 @@ static struct conf_service *service_create_static(struct conf_server *server, } } } + service->xml_node = xmlCopyNode(node, 1); return service; }