From a662fb07cab81d45cdd1b8f5b7e68c21992a8678 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 24 Sep 2002 08:00:50 +0000 Subject: [PATCH] tst7 checks for memory leaks --- zoom/Makefile.am | 6 +++--- zoom/zoomtst7.c | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/zoom/Makefile.am b/zoom/Makefile.am index d656356..cbb8301 100644 --- a/zoom/Makefile.am +++ b/zoom/Makefile.am @@ -1,4 +1,4 @@ -## $Id: Makefile.am,v 1.5 2002-09-16 18:45:14 adam Exp $ +## $Id: Makefile.am,v 1.6 2002-09-24 08:00:50 adam Exp $ ## Copyright (C) 2001, Index Data AM_CPPFLAGS = -I$(top_srcdir)/include @@ -12,8 +12,8 @@ zoomtst3_LDADD = ../lib/libyaz.la zoomtst4_LDADD = ../lib/libyaz.la zoomtst5_LDADD = ../lib/libyaz.la zoomtst6_LDADD = ../lib/libyaz.la -zoomtst7_LDADD = ../lib/libyaz.la -zoomtst8_LDADD = ../lib/libyaz.la +zoomtst7_LDADD =../lib/libyazmalloc.la ../lib/libyaz.la +zoomtst8_LDADD = ../lib/libyaz.la zoomsh_LDADD = ../lib/libyaz.la $(READLINE_LIBS) zoomtst1_SOURCES = zoomtst1.c diff --git a/zoom/zoomtst7.c b/zoom/zoomtst7.c index 68f3165..515c062 100644 --- a/zoom/zoomtst7.c +++ b/zoom/zoomtst7.c @@ -1,5 +1,5 @@ /* - * $Id: zoomtst7.c,v 1.11 2002-07-31 14:06:09 adam Exp $ + * $Id: zoomtst7.c,v 1.12 2002-09-24 08:00:50 adam Exp $ * * API test.. */ @@ -10,7 +10,7 @@ #include #include - +#include #include int main(int argc, char **argv) @@ -176,9 +176,10 @@ int main(int argc, char **argv) } ZOOM_options_destroy (o); - xmalloc_trav(""); + yaz_log_init_level(LOG_ALL|LOG_MALLOC); + xmalloc_trav("1"); nmem_exit(); - xmalloc_trav(""); + xmalloc_trav("2"); exit (0); } -- 1.7.10.4