X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fyaz-xmlquery.c;h=34fefd2121bb71125004f58158dd80c6548d10e9;hp=795b17ec32f6d9bd988a11c775efc80fcc13df04;hb=f05461c79b402d35bb6ca5feb75a848f4a5a3c7d;hpb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a diff --git a/util/yaz-xmlquery.c b/util/yaz-xmlquery.c index 795b17e..34fefd2 100644 --- a/util/yaz-xmlquery.c +++ b/util/yaz-xmlquery.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ #if HAVE_CONFIG_H @@ -52,9 +52,9 @@ void pqftoxmlquery(const char *pqf) else { xmlDocPtr doc = 0; - + yaz_rpnquery2xml(rpn, &doc); - + if (!doc) { fprintf(stderr, "%s: yaz_rpnquery2xml failed for query %s\n", @@ -84,7 +84,7 @@ void pqftoxmlquery(const char *pqf) } xmlFreeDoc(doc); } - } + } odr_destroy(odr); } @@ -162,7 +162,7 @@ void xmlfiletopqf(const char *xmlfile) fprintf(stderr, "%s: close failed for file %s\n", prog, xmlfile); exit(1); } - + xmlquerytopqf(xmlstr); xfree(xmlstr); }