projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added turbo marcxml read and write
[yaz-moved-to-github.git]
/
test
/
tstxmlquery.c
diff --git
a/test/tstxmlquery.c
b/test/tstxmlquery.c
index
1b6dc1b
..
c1e9034
100644
(file)
--- a/
test/tstxmlquery.c
+++ b/
test/tstxmlquery.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2010 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-59,7
+59,7
@@
enum pqf2xml_status pqf2xml_text(const char *pqf, const char *expect_xml,
xmlDocDumpMemory(doc, (xmlChar **) &buf_out, &len_out);
xmlDocDumpMemory(doc, (xmlChar **) &buf_out, &len_out);
- if (len_out == strlen(expect_xml)
+ if (len_out == (int) strlen(expect_xml)
&& memcmp(buf_out, expect_xml, len_out) == 0)
{
Z_Query *query2 = 0;
&& memcmp(buf_out, expect_xml, len_out) == 0)
{
Z_Query *query2 = 0;
@@
-93,6
+93,7
@@
enum pqf2xml_status pqf2xml_text(const char *pqf, const char *expect_xml,
status = XML_NO_MATCH;
}
xmlFreeDoc(doc);
status = XML_NO_MATCH;
}
xmlFreeDoc(doc);
+ xmlFree(buf_out);
}
#else
status = QUERY2XML_FAILED;
}
#else
status = QUERY2XML_FAILED;