X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zutil%2Fsrwtst.c;h=0c7d8da60986b80ba746a410deb346e4c2ed9502;hb=c76cdd28e9040ef40ae81a991a826d03b556e22c;hp=562f2fede7975ad7d3e465b1dae750c4105cd2ec;hpb=ac286ae76051058c8e340bf84eb98391340b7d22;p=yaz-moved-to-github.git diff --git a/zutil/srwtst.c b/zutil/srwtst.c index 562f2fe..0c7d8da 100644 --- a/zutil/srwtst.c +++ b/zutil/srwtst.c @@ -2,7 +2,7 @@ * 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.2 2003-02-17 21:23:31 adam Exp $ */ #include @@ -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