projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
99b3cb2
)
Use nmem_init + nmem_exit to track memory usage easier.
author
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 17 Mar 2007 09:14:00 +0000
(09:14 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sat, 17 Mar 2007 09:14:00 +0000
(09:14 +0000)
util/marcdump.c
patch
|
blob
|
history
diff --git
a/util/marcdump.c
b/util/marcdump.c
index
c4b75ff
..
4ecdc86
100644
(file)
--- 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.
*
* 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
*/
#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;
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
#if HAVE_LOCALE_H
setlocale(LC_CTYPE, "");
#endif
@@
-442,6
+443,7
@@
int main (int argc, char **argv)
}
if (cfile)
fclose (cfile);
}
if (cfile)
fclose (cfile);
+ nmem_exit();
if (!no)
{
usage(prog);
if (!no)
{
usage(prog);