X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zutil%2Fsrwtst.c;h=d31dca20766d8130a589a63c764839e3592bde31;hb=f512aa33473ae86f8e8efd8da749a82c398e87f0;hp=562f2fede7975ad7d3e465b1dae750c4105cd2ec;hpb=ac286ae76051058c8e340bf84eb98391340b7d22;p=yaz-moved-to-github.git diff --git a/zutil/srwtst.c b/zutil/srwtst.c index 562f2fe..d31dca2 100644 --- a/zutil/srwtst.c +++ b/zutil/srwtst.c @@ -2,12 +2,12 @@ * Copyright (c) 2002-2003, Index Data. * See the file LICENSE for details. * - * $Id: srwtst.c,v 1.1 2003-02-14 18:49:24 adam Exp $ + * $Id: srwtst.c,v 1.3 2003-02-17 22:35:48 adam Exp $ */ #include -#if HAVE_XSLT +#if HAVE_XML2 Z_SOAP_Handler h[2] = { {"http://www.loc.gov/zing/srw/v1.0/", 0, (Z_SOAP_fun) yaz_srw_codec}, {0, 0, 0} @@ -24,6 +24,7 @@ int main(int argc, char **argv) ODR decode, encode; int debug = 0; + nmem_init(); if (argc == 2 && !strcmp(argv[1], "debug")) debug = 1; no = fread(buf, 1, sizeof(buf), stdin); @@ -80,6 +81,9 @@ int main(int argc, char **argv) fprintf(stderr, "No output!\n"); exit(1); } + odr_destroy(decode); + odr_destroy(encode); + nmem_exit(); exit(0); } #else