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
Ups... memory leak
[yaz-moved-to-github.git]
/
src
/
srw.c
diff --git
a/src/srw.c
b/src/srw.c
index
bc3c747
..
a34e483
100644
(file)
--- a/
src/srw.c
+++ b/
src/srw.c
@@
-1,11
+1,14
@@
/* 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.
*/
/**
* \file srw.c
* \brief Implements SRW/SRU package encoding and decoding
*/
* See the file LICENSE for details.
*/
/**
* \file srw.c
* \brief Implements SRW/SRU package encoding and decoding
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <yaz/srw.h>
#if YAZ_HAVE_XML2
#include <yaz/srw.h>
#if YAZ_HAVE_XML2
@@
-192,7
+195,7
@@
static int match_xsd_integer(xmlNodePtr ptr, const char *elem, ODR o,
ptr = ptr->children;
if (!ptr || ptr->type != XML_TEXT_NODE)
return 0;
ptr = ptr->children;
if (!ptr || ptr->type != XML_TEXT_NODE)
return 0;
- *val = odr_intdup(o, atoi((const char *) ptr->content));
+ *val = odr_intdup(o, odr_atoi((const char *) ptr->content));
return 1;
}
return 1;
}
@@
-734,6
+737,7
@@
int yaz_srw_codec(ODR o, void * vptr, Z_SRW_PDU **handler_data,
res->diagnostics = 0;
res->num_diagnostics = 0;
res->nextRecordPosition = 0;
res->diagnostics = 0;
res->num_diagnostics = 0;
res->nextRecordPosition = 0;
+ res->facetList = 0;
for (; ptr; ptr = ptr->next)
{
for (; ptr; ptr = ptr->next)
{