From 417ea0996dadd8b89ab767bfbfbd0aaaf64f07ad Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 9 Jan 2015 11:06:47 +0000 Subject: [PATCH] record_conv: remove fprintf and properly free select conv --- src/record_conv.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); } -- 1.7.10.4