diff --git a/xlhtml/Makefile.in b/xlhtml/Makefile.in index d702d79..242c2d5 100644 --- a/xlhtml/Makefile.in +++ b/xlhtml/Makefile.in @@ -86,7 +86,7 @@ LDADD = ../cole/libcole.a xlhtml_SOURCES = support.c xlhtml.c memwatch.c xldump_SOURCES = xldump.c xlcdump_SOURCES = xlcdump.c -AM_CFLAGS = -Wall -Wshadow -Wcast-align -Wpointer-arith +AM_CFLAGS = -Wall -Wshadow -Wcast-align -Wpointer-arith -DMEMWATCH mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = diff --git a/xlhtml/xlhtml.c b/xlhtml/xlhtml.c index e886a7f..9aa2a7a 100644 --- a/xlhtml/xlhtml.c +++ b/xlhtml/xlhtml.c @@ -617,11 +617,20 @@ int main (int argc, char **argv) free(title); if (lastUpdated) free(lastUpdated); + + free(str_array); + free(ws_array); return 0; } + + + + + + void scan_file(COLEDIRENT *cde, void *_info) { U32 count = 0;