X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fxml_include.c;fp=src%2Fxml_include.c;h=8008610e25f2fe2fec0ee931c33f6be1b7e62963;hp=21e6b0e12332d753712fe06b2edc87395e0f4e39;hb=b2bc97df294f5da6c93e1119a42536b23afce8ef;hpb=f0379c36caadf35c41eb2acb7efad8aadaff0d68 diff --git a/src/xml_include.c b/src/xml_include.c index 21e6b0e..8008610 100644 --- a/src/xml_include.c +++ b/src/xml_include.c @@ -131,6 +131,7 @@ static int process_config_includes(yaz_xml_include_t config, xmlNode *n) xmlChar *src = xmlGetProp(n, (xmlChar *) "src"); if (src) { + /* src must be preserved, because n is destroyed */ int ret = config_include_src(config, &n, (const char *) src); xmlFree(src);