projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80d0b86
)
record_conv: remove fprintf and properly free select conv
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 9 Jan 2015 11:06:47 +0000
(11:06 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 9 Jan 2015 11:06:47 +0000
(11:06 +0000)
src/record_conv.c
patch
|
blob
|
history
diff --git
a/src/record_conv.c
b/src/record_conv.c
index
1595faf
..
e6e1cdd
100644
(file)
--- a/
src/record_conv.c
+++ b/
src/record_conv.c
@@
-385,8
+385,6
@@
static int convert_select(void *vinfo, WRBUF record, WRBUF wr_error)
for (i = 0; i < nodes->nodeNr; i++)
{
xmlNode *ptr = nodes->nodeTab[i];
- fprintf(stderr, "xpath result %d type=%d\n", i,
- ptr->type);
if (ptr->type == XML_ELEMENT_NODE)
ptr = ptr->children;
if (ptr->type == XML_TEXT_NODE)
@@
-403,8
+401,12
@@
static int convert_select(void *vinfo, WRBUF record, WRBUF wr_error)
return ret;
}
-static void destroy_select(void *info)
+static void destroy_select(void *vinfo)
{
+ struct select_info *info = vinfo;
+
+ if (info)
+ nmem_destroy(info->nmem);
}