From 1e2d8a4038fdada537fc10ff0eb9c52b338a8f9d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sat, 17 Mar 2007 09:14:00 +0000 Subject: [PATCH] Use nmem_init + nmem_exit to track memory usage easier. --- util/marcdump.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/marcdump.c b/util/marcdump.c index c4b75ff..4ecdc86 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdump.c,v 1.49 2007-03-08 12:45:02 adam Exp $ + * $Id: marcdump.c,v 1.50 2007-03-17 09:14:00 adam Exp $ */ #define _FILE_OFFSET_BITS 64 @@ -327,7 +327,8 @@ int main (int argc, char **argv) const char *split_fname = 0; const char *leader_spec = 0; int write_using_libxml2 = 0; - + + nmem_init(); #if HAVE_LOCALE_H setlocale(LC_CTYPE, ""); #endif @@ -442,6 +443,7 @@ int main (int argc, char **argv) } if (cfile) fclose (cfile); + nmem_exit(); if (!no) { usage(prog); -- 1.7.10.4