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
Support for CQL transformations involving wildcard patterns, which
[yaz-moved-to-github.git]
/
src
/
soap.c
diff --git
a/src/soap.c
b/src/soap.c
index
ebcf158
..
64310bc
100644
(file)
--- a/
src/soap.c
+++ b/
src/soap.c
@@
-2,7
+2,7
@@
* Copyright (c) 2002-2003, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 2002-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: soap.c,v 1.1 2003-10-27 12:21:35 adam Exp $
+ * $Id: soap.c,v 1.2 2003-12-18 23:04:23 adam Exp $
*/
#include <yaz/soap.h>
*/
#include <yaz/soap.h>
@@
-204,7
+204,11
@@
int z_soap_codec_enc(ODR o, Z_SOAP **pp,
handlers[no].client_data,
handlers[no].ns);
if (ret)
handlers[no].client_data,
handlers[no].ns);
if (ret)
+ {
+ xmlFreeNode(envelope_ptr);
+ xmlFreeDoc(doc);
return ret;
return ret;
+ }
}
if (p->which == Z_SOAP_generic && !strcmp(p->ns, "SRU"))
{
}
if (p->which == Z_SOAP_generic && !strcmp(p->ns, "SRU"))
{
@@
-223,6
+227,7
@@
int z_soap_codec_enc(ODR o, Z_SOAP **pp,
memcpy(*content_buf, buf_out, len_out);
xmlFree(buf_out);
}
memcpy(*content_buf, buf_out, len_out);
xmlFree(buf_out);
}
+ xmlFreeNode(envelope_ptr);
xmlFreeDoc(doc);
return 0;
}
xmlFreeDoc(doc);
return 0;
}