X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Falvis.c;h=4ae6140a9f385a11c7adf3a4e0abc596a92569f9;hb=bd797d70f666280cdf941337d86b438a8d2506fc;hp=cb980504bccd49403ae023d31f0ba9bfa16e0b45;hpb=7952454742648f5f5b62205c27ee019c7b6a1592;p=idzebra-moved-to-github.git diff --git a/index/alvis.c b/index/alvis.c index cb98050..4ae6140 100644 --- a/index/alvis.c +++ b/index/alvis.c @@ -1,5 +1,5 @@ -/* $Id: alvis.c,v 1.10 2006-12-22 13:57:03 adam Exp $ - Copyright (C) 1995-2006 +/* $Id: alvis.c,v 1.13 2007-02-18 21:50:52 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -345,6 +345,7 @@ static void filter_destroy(void *clientData) { struct filter_info *tinfo = clientData; destroy_schemas(tinfo); + xfree(tinfo->full_name); if (tinfo->reader) xmlFreeTextReader(tinfo->reader); odr_destroy(tinfo->odr); @@ -507,7 +508,7 @@ static int extract_split(struct filter_info *tinfo, struct recExtractCtrl *p) p /* I/O handler */, 0 /* URL */, 0 /* encoding */, - XML_PARSE_XINCLUDE); + XML_PARSE_XINCLUDE|XML_PARSE_NOENT); } if (!tinfo->reader) return RECCTRL_EXTRACT_ERROR_GENERIC; @@ -550,7 +551,7 @@ static int extract_full(struct filter_info *tinfo, struct recExtractCtrl *p) xmlDocPtr doc = xmlReadIO(ioread_ex, ioclose_ex, p /* I/O handler */, 0 /* URL */, 0 /* encoding */, - XML_PARSE_XINCLUDE); + XML_PARSE_XINCLUDE|XML_PARSE_NOENT); if (!doc) { return RECCTRL_EXTRACT_ERROR_GENERIC; @@ -694,7 +695,7 @@ static int filter_retrieve (void *clientData, struct recRetrieveCtrl *p) doc = xmlReadIO(ioread_ret, ioclose_ret, p /* I/O handler */, 0 /* URL */, 0 /* encoding */, - XML_PARSE_XINCLUDE); + XML_PARSE_XINCLUDE|XML_PARSE_NOENT); if (!doc) { p->diagnostic = YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS;