X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsoap.c;h=5eb176f8465503c4a64a623e52566cbd2900b132;hp=2d1910173e07abe2dc461665906e8709e8a69d9c;hb=725fc033b729b22a1e0cfba614192b6fbfaeda4f;hpb=cdf3162d32f13fd58d0b7fb06b3252bab2bc78ad diff --git a/src/soap.c b/src/soap.c index 2d19101..5eb176f 100644 --- a/src/soap.c +++ b/src/soap.c @@ -2,7 +2,7 @@ * Copyright (c) 2002-2004, Index Data. * See the file LICENSE for details. * - * $Id: soap.c,v 1.6 2004-01-07 21:02:42 adam Exp $ + * $Id: soap.c,v 1.7 2004-01-14 00:15:56 adam Exp $ */ #include @@ -203,6 +203,8 @@ int z_soap_codec_enc_xsl(ODR o, Z_SOAP **pp, if (p->which == Z_SOAP_generic && !strcmp(p->ns, "SRU")) { xmlDocSetRootElement(doc, body_ptr->children); + body_ptr->children = 0; + xmlFreeNode(envelope_ptr); } if (stylesheet) {