From: Adam Dickmeiss Date: Fri, 9 Jan 2015 11:06:47 +0000 (+0000) Subject: record_conv: remove fprintf and properly free select conv X-Git-Tag: v5.8.0~2 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=417ea0996dadd8b89ab767bfbfbd0aaaf64f07ad;p=yaz-moved-to-github.git record_conv: remove fprintf and properly free select conv --- diff --git a/src/record_conv.c b/src/record_conv.c index 1595faf..e6e1cdd 100644 --- 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); }